Re: [PHP] Why does this encoding work in PHP?
On Fri, May 4, 2007 3:24 am, Arno Kuhl wrote: > I recently came across a script that was oddly encoded. A bit of > digging > revealed it was encoded in octal. What puzzles me is why the php > interpreter > is able to understand the script. > > An example (not from the original script) > > require_once "../file.php"; > require_once "\56\56\57\146\151\154\145\56\160\150\160"; http://us.php.net/manual/en/language.types.string.php -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why does this encoding work in PHP?
The characters are encoded in octal and the php interpreter converts them into the corresponding ASCII characters and then the sequence is represented as a string which is included?
[PHP] Why does this encoding work in PHP?
I recently came across a script that was oddly encoded. A bit of digging revealed it was encoded in octal. What puzzles me is why the php interpreter is able to understand the script. An example (not from the original script) require_once "../file.php"; require_once "\56\56\57\146\151\154\145\56\160\150\160"; Arno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php