Page 1 of 1

Opening a .php file with a program?

PostPosted: 10. February 2010 12:22
by -NCIS-
how do i open a .php file so that it open firefox and shows the result, i have xampp installed, and i dont want to have to go to my browser and manually type in the file name to show it...

and please reply in english.

thanks

Re: Opening a .php file with a program?

PostPosted: 10. February 2010 12:31
by Wiedmann
Not possible.

Re: Opening a .php file with a program?

PostPosted: 10. February 2010 13:23
by Nobbie
Right click on your windows desktop, the context menu appears. Choose "New", then "Link", in the following dialog enter "http://localhost/filename.php" (replace filename.php by any file name which is stored in Xampps htdocs folder), give it a name ("My Script") for example and store that new icon.

Now you may double click that icon which immediately results in opening your default browser (i.e. Firefox or IE8) and showing the output of filename.php

Re: Opening a .php file with a program?

PostPosted: 10. February 2010 22:50
by -NCIS-
Thanks mate, how do i associate all file with in the htdocs folder with .php to open with firefox like that? thanks

Re: Opening a .php file with a program?

PostPosted: 11. February 2010 00:06
by Nobbie
You cannot. Only single files as described above.