Random php source in output

Random php source in output

Posted by: Confuzer
Posted on: 2009-04-08 05:02:00

Each time I upload a file, parts of it get echo'd at the top and/or bottom of my php scripts. Each echo is unique for a .php file. Like index.php will always echo the same garbage, and other files have different stuff on top.

This will stay until I upload again (it seems like the compiler messes it up somewhere when recompiling new php files).

An example you can find here:
http://www.confuzion.nl/eve_market/

Look at the source and you see part of a php file which is eventually correctly executed.

The code was duplicated from a dedicated server with php 4.3 which had never such problems. I work with "require_once" calls.

Anyone have a clue in which direction I must look? How is it possible that code gets added persistently to the output buffer? I tried in one file edditing a bit. And sometimes changing:

Re: Random php source in output

Posted by: sXi
Posted on: 2009-04-09 13:03:00

It looks like it's possibly skipping an include to me.




How To Install PHP.INI / ionCube on DreamHost

Re: Random php source in output

Posted by: Confuzer
Posted on: 2009-04-09 15:44:00

If that was the case, the script would'nt have worked I recon. The script works fine (well, internal server errors 50% of the time cus it's a pretty have script).

Tags: php scriptsphp sourcephp filededicated serverphp 4cluegarbage