Originally posted by DirtySanchez
It has to be something which functions in IE and Firefox causing it not to work.
I strongly disagree. The webserver interprets php and produces html. Either the webserver is doing that, or it isn't.
There is no way for the client PC to display raw PHP unless the webserver isn't doing its job properly.
There isn't anything you can set in IE, FireFox or anything else to tell the webserver not to do what the server administrator has configured it to do.
If there was, it would be a major exploit and could be used to extract passwords etc from commercial sites.
If you type a url into your PC and see raw php, there are a few of possibilities.
-. the webserver is not configured for PHP
-. the webserver is not configured to interpret the particlar file type as PHP
-. either 1 or 2 is simulated beacuse you're not getting through to the webserver which you think you are.
To figure out what's going on, try these simple steps:
- Create a new file called xinfo.php containing just php_info. I don't care if you've already got one. Create a new one:
<?php
php_info();
?>
- Try to access this file from the problem PC.
If you get a 404 File not found error, you must be connecting to a different server to the one you created the file on. Check the client's network setup, routing, caching, hosts file etc
If you see exactly the above, then the webserver didn't recognise that the file was to be interpreted as php. Check the webserver config.
If the above works perfectly, but you still see php code when you try to access phpmyadmin, doublecheck the suffix of the phpmyadmin file you are trying to access, rename xinfo.php to match it and rerun the test.