--- odbapsvm <[EMAIL PROTECTED]> wrote:

> Okay, now I'm totally confused.
> 
> When it comes to php does Internet Explorer and 
> Firefox work differently?
> 
> When I type c:\php\myfile.php in internet explorer I don't see the
> output of the php file but the entire contents of the php file.
> 
> When I type this same thing into the firefox url dialog box,  firefox
> changes it to file:///c:/php/myfile.php in the dialog box and displays
> nothing.
> 
> Any help clearing this up would be appreciated.

PHP code is processed by a server module.  Putting a Windows filepath
(regardless of the format) in your browser will generally lead to
disappointment.  If you are running a web server with PHP installed on your
local machine, you will typically place the php script in a particular
directory and use a URL like:

http://localhost/script.php

to run it.  This is not like when you were learning HTML, CSS or even
Javascript where the display and processing is run in the browser.  Under those
circumstances, a filepath or URL which refers to the specific file may work.

If you have a file named "index.php" and it contains only HTML (because you
plan to add PHP content later) then I have noticed recently that Firefox does
not open these files.  In the past I think it did.  However, one should not
expect the PHP code to be processed by the browser.

James

Reply via email to