php files not recognized in browser

Chris F.A. Johnson cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Fri May 13 03:26:01 UTC 2005


On Thu, 12 May 2005, Alex Maynard wrote:

>
> Hi, I've got a newby question on a php set up problem.  This is probably a
> trivial question, but I'm stuck on it and would be grateful for any help I
> can find.
>
> I set up apache/php/other application on linux using
> http://www.apachefriends.org/en/.
>
> Everything including their test step worked fine.
>
> But, when I tried to open a php file on my computer using mozilla I got
> the following error message:
>
> The file "hello.php" is of type application/x-httpd-php, and Mozilla does
> not know how to handle this file type. The file is located at:
> /home/amaynard/share/private_html/php  What should Mozilla do with this
> file?
>
> The strange thing is that Mozilla does recognize/open .php files on the internet (just not on
> my computer). And opera seemed to be able to open the .php file
> on my computer but I'm not sure it displayed correctly.

    The web server interprets the php, not the browser, When you pass
    a file to the browser, it does not use the web server.

-- 
     Chris F.A. Johnson                     <http://cfaj.freeshell.org>
     ==================================================================
     Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
     <http://www.torfree.net/~chris/books/ssr.html>
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list