Page 1 of 1

Output PHP Code

Posted: Fri May 26, 2006 10:29 pm
by Icer5k
I have been trying to output PHP code from an application into a new file, however it does not output anything. All that is left is a blank file.

The code is:

Code: Select all

$data = gzinflate(base64_decode($fullappcode);
$hf = fopen('fullversion.php', 'ab');
fwrite($hf, $data);
fclose($hf);
Thanks!

Posted: Fri May 26, 2006 10:59 pm
by feyd
Are you sure the code was unpacked correctly? Something tells me $data is false.

gettype() and/or var_dump() may be of use.