PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Icer5k
Forum Newbie
Posts: 1 Joined: Fri May 26, 2006 10:26 pm
Post
by Icer5k » Fri May 26, 2006 10:29 pm
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!
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri May 26, 2006 10:59 pm
Are you sure the code was unpacked correctly? Something tells me $data is false.
gettype() and/or
var_dump() may be of use.