Opening a .php file with a program?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Opening a .php file with a program?

Postby -NCIS- » 10. February 2010 12:22

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
-NCIS-
 
Posts: 2
Joined: 10. February 2010 12:19

Re: Opening a .php file with a program?

Postby Wiedmann » 10. February 2010 12:31

Not possible.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Opening a .php file with a program?

Postby Nobbie » 10. February 2010 13:23

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
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Opening a .php file with a program?

Postby -NCIS- » 10. February 2010 22:50

Thanks mate, how do i associate all file with in the htdocs folder with .php to open with firefox like that? thanks
-NCIS-
 
Posts: 2
Joined: 10. February 2010 12:19

Re: Opening a .php file with a program?

Postby Nobbie » 11. February 2010 00:06

You cannot. Only single files as described above.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 141 guests