stockton Posted July 2, 2007 Share Posted July 2, 2007 What would be the problem that would cause Firefox to display the php source whereas IE displays the page fine? Web server is Apache on a Windows box. Quote Link to comment Share on other sites More sharing options...
Dragen Posted July 2, 2007 Share Posted July 2, 2007 what is the filetype? if it's not php, chances are it'll display the source Quote Link to comment Share on other sites More sharing options...
stockton Posted July 2, 2007 Author Share Posted July 2, 2007 No it is php. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 2, 2007 Share Posted July 2, 2007 I dont see how that can be possible. All the php is executed on the server. It should have nothing to do with the browser. Quote Link to comment Share on other sites More sharing options...
xyn Posted July 2, 2007 Share Posted July 2, 2007 Any chance we can see the page contents? including the php code. and the file name? Quote Link to comment Share on other sites More sharing options...
trq Posted July 2, 2007 Share Posted July 2, 2007 Are you accessing the page via a url eg; http://localhost/file.php ? Quote Link to comment Share on other sites More sharing options...
phporcaffeine Posted July 2, 2007 Share Posted July 2, 2007 If its a localhost URL and you see PHP code it's because the PHP interpreter engine is not parsing the code. However, that is not the correct or default action that should occur. If the PHP Interpreter engine is not running on the localhost machine and you try to view a PHP script in a browser (on the localhost machine), the browser should attempt a file download, which is the default action for any mime type the browser does not have an association for. If however PHP is displayed as code in the browser, I would think that the PHP file type extension is probably set to open with the browser on the localhost machine. If were talking about an HTTP web site (non-localhost) and you are able to view the PHP code of script on a web site then it could be something as simple as the author of the script using show_source(); Quote Link to comment Share on other sites More sharing options...
stockton Posted July 2, 2007 Author Share Posted July 2, 2007 We have a timing problem. My user is 12 hours out of step in South Africa and has closed down for the night. We'll try tomorrow OK? Quote Link to comment Share on other sites More sharing options...
stockton Posted July 2, 2007 Author Share Posted July 2, 2007 phpORcaffine but then why does it work with IE7? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.