-
PHP beginner question.
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?
Last edited by fred1; 03-27-2010 at 07:19 PM.
Reason: sp
-
-
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.
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks