Output PHP Code

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

Post Reply
Icer5k
Forum Newbie
Posts: 1
Joined: Fri May 26, 2006 10:26 pm

Output PHP Code

Post 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!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply