Jump to content

Recommended Posts

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!

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.