mattae Posted May 29, 2010 Share Posted May 29, 2010 Hello all! New to the forum here! I'm having a problem where I'm not able to view my php files locally. My server's on a Win2003 machine running WAMP. Everything is working pretty good. The only weird thing is that when I try to look at a php file locally (ie. C:\wamp\...) it will just ask me if I want to download or open the file. If I click open, it will open it in notepad. However, if I open that exact same file through the internet (ie. http://www...), it opens fine and dandy. Of course the easy workaround is to just view them through the interwebs... but I'm pretty sure something's wrong. I'm just not sure where to start troubleshooting this. I access my server remotely from my XP laptop. I do my designing on my laptop and can open local PHP files without a problem. Thanks in advance for anyone who can shine any light on this issue! Quote Link to comment https://forums.phpfreaks.com/topic/203301-trouble-with-viewing-php-locally-on-my-server/ Share on other sites More sharing options...
trq Posted May 29, 2010 Share Posted May 29, 2010 PHP is processed by your server, in order to view the processed php you need to view them via a http request. The easiest way to do this is to open a web browser and goto http://localhost/filename.php There seems to be nothing wrong with your setup. Just a misunderstanding about how things need to work. Quote Link to comment https://forums.phpfreaks.com/topic/203301-trouble-with-viewing-php-locally-on-my-server/#findComment-1065194 Share on other sites More sharing options...
mattae Posted May 30, 2010 Author Share Posted May 30, 2010 Makes sense... Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/203301-trouble-with-viewing-php-locally-on-my-server/#findComment-1065442 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.