Log in

View Full Version : PHP beginner question.



fred1
03-27-2010, 07:18 PM
I installed XAMPP and localhost/helloworld.php. works in the browser. But when I click on 'helloworld.php' in htdocs it seems to work but does not in fact execute the php scripts, just the html.

Why can't I just click on a file in htdocs and get it to execute? Maybe there is some setting that needs to be fixed?

jscheuer1
03-27-2010, 07:38 PM
That's the way it's supposed to work. Unless XAMPP and the local host are active and you navigate to the pages using the localhost address, your local PHP 'sandbox' is inaccessible. With or without all that, you can always view the pages as ordinary files by navigating to them directly. But of course, since they are no longer being viewed via the XAMPP server, there will be no PHP interpreter available.

fred1
03-27-2010, 07:42 PM
Thanks.