php files not opening in firefox

Colin Law clanlaw at googlemail.com
Wed Feb 9 21:05:46 UTC 2011


On 9 February 2011 14:55, Ashim Kapoor <ashimkapoor at gmail.com> wrote:
>
>> That is not the right way to open php scripts, you should navigate to them
>> using yout browser. If you simply double click the php file, firefox will
>> load something like:
>>
>> file:///var/www/myscript.php
>>
>> It won't work because php needs to be interpreted on demand. Apache, your
>> webserver runs this task diferently it invokes the php interpreter runs it
>> and the result is then presented to the browser. For that you to access,
>> thru your browser, something like
>>
>> http://localhost/myscript.php
>>
>
> How would i open this file:///var/www/Php and MySql Bible/ch4/file1.php with
> the localhost way ?
> As far as i remember till today afternoon ALL php files withing the var/www
> folder would open in FF by clicking on them.

Are you sure you were opening php files by clicking?  Not just html,
which *will* open directly in FF.

Colin




More information about the ubuntu-users mailing list