Jump to content

can't open local .php files


desreguard

Recommended Posts

Hey all, this is my first post ever and am not really sure if this is the right place for it or not, sorry in advance if it isn't. I'm new to PHP and trying to learn. I'm running Ubuntu 10.04 LTS and Firefox 3.6.22. I have libapache2-mod-php5 installed and running, but for some reason everytime I try to open a local .php file in firefox the download manager pops up and ask me what I want to do with the file. Has anyone else encountered this before? Is it something simple that I overlooked? Any help would be appreciated.

Link to comment
Share on other sites

tried that but get a 404 error saying it can't find it. The file is in my Home folder, does it have to be in the /var/www directory for it to be found? Plus I have a html file that has a link to the test.php file, but when I try to navigate there I get the dl manager. But it can find the other html pages that are linked to it.

Link to comment
Share on other sites

No, it's for all files that are web-type files. php files in particular need to be parsed by the interpreter so the code is executed and sent to the browser as html markup. For the purposes of web development, you should consider that folder to be the root directory.

Link to comment
Share on other sites

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.