Hello.
For some odd reason PHP has started to generate HTML incorrectly depending on where I access the file from.
Firstly, if I run the script from a shell using 'php <file>.php' the HTML is there and correct. But if I try and access it from a web browser it stops generating at a certain point, I can tell this by viewing the source of the web page.
Has anyone come across this before?
Stephen,
PHP doesn't seem to be generating HTML properly
Moderator: General Moderators
-
impulse()
- Forum Regular
- Posts: 748
- Joined: Wed Aug 09, 2006 8:36 am
- Location: Staffordshire, UK
- Contact:
This looks more like a server problem than code problem.
If I access the PHP files through a web page then everything after connecting to the MySQL isn't generated, whether it be database information or hard coded HTML. The server is there and runs correctly as I can run the php file from a shell and the HTML is generated fine.
If I access the PHP files through a web page then everything after connecting to the MySQL isn't generated, whether it be database information or hard coded HTML. The server is there and runs correctly as I can run the php file from a shell and the HTML is generated fine.