Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-06-2005, 12:21 AM   #1
Registered: Jul 2003
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
Firefox won't read .php files

If I download some .php files I've been working on and try to open them ( so I can see how well my work on them has been going) gnome brings up a propt asking me what Firefox should do, If I want to open using Firefox, or to save it to disk. If accept "open with firefox" then it prompts again, and again until I just hit cancel.

I know I can use gedit or somthing like that but I want to give NVU a try and since it's mozilla based, when I try to open an .php file it does the same prompt loop.

any help apprisiated!

Old 05-06-2005, 12:40 AM   #2
Registered: May 2005
Distribution: debian
Posts: 79

Rep: Reputation: 15
PHP files aren't meant to be directly opened by a browser. PHP is a scripting language that get processed by the web server. Say you create a php on the web server that has the following line:

<?php echo '<p>Hello World</p>'; ?>

Once its processed on the server side, the following is sent to the browser:

<p>Hello World</p>

If you wrote a page in straight php, the browser doesn't know what to do with it. It can only display HTML.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 12:16 PM
read php files, redhat 8.0 lenlutz Linux - Software 8 10-21-2003 12:20 PM
PHP unable to read .php files tuka Linux - Software 6 10-12-2003 06:40 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration