Hi,
First time on this site. Looks like there is lots of useful info here.
One of my websites has a number of PHP pages, which normally display fine. Every so often though, say, 1 in 100 clicks, the web page won't be displayed. Instead, the php source code gets displayed instead.
I've done a search on your forum, and from what I could find, the source getting displayed normally means that PHP isn't installed. However, I know that PHP is installed, because normally it all works fine!
Any idea what might be going on, and how I can fix it? The server is running Apache and I don't have any admin control over it. However, the helpdesk at the hosts have said they will look into it.
my PHP occasionally displays the source code by mistake
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
I have a similar problem, when using header("Location: *.php") - for every request PHP source is displayed. There are two identical (by software) servers, but I have this problem only with one of them.
Apache/2.2.3, PHP 5
This is the SquirrelMail index.php which causes the problem.
Still unsolved.
Apache/2.2.3, PHP 5
This is the SquirrelMail index.php which causes the problem.
Still unsolved.
There are 10 types of people in this world, those who understand binary and those who don't
International PHP Magazine just had an article about this very subject, rooted in the problem some people report about Facebook:
http://www.php-mag.net/magphpde/magphpd ... eid,5.html
http://www.php-mag.net/magphpde/magphpd ... eid,5.html
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.