base64_decode an image, works on blank page, not on page where text is..
if I try to base64_decode an image which was encoded with base64_encode on a blank page, it works, if I try on a page with stuff already on it, it just shows me the source code to the image...
Example: Run this code as a blank page, no spaces before or after the <?
then run it again with a space or a character..
unless you explicitly declare header after decoding your image, what you'll find is only normally parsed php script. note that even a space has told php that it should sent text/html header.
__________________
Useful PHP links:
bugs.php.net - for reporting PHP bugs
pear.php.net - PHP extension and application repository
pecl.php.net - get non standard PHP modules, submit yours
www.phpclasses.org - PHP classes repository