double click to open a php file as a webpage

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

double click to open a php file as a webpage

Postby dnelblnc951 » 28. June 2015 14:23

Hi
I've installed xampp which works just fine except for 1 thing that keeps bothering me and I wonder if it can be fixed.
whenever I double click a php file, chrome (or internet explorer) won't open it as a webpage but it would prompt me
to save it (like when downloading a file from the internet).
chrome opene with this url: file:///C:/xampp/htdocs/page.php rather than with: localhost/page.php
the only way for me to open a php file is to open chrome > type localhost in the address bar and than to navigate to the file.
is it possible to set it so whenever I double click a file in htdocs it opens as webpage?

thanks
dnelblnc951
 
Posts: 1
Joined: 28. June 2015 14:01
Operating System: windows 8.1

Re: double click to open a php file as a webpage

Postby glitzi85 » 28. June 2015 16:58

No
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests