Page 1 of 1

Puzzled about where to put files

PostPosted: 25. August 2009 07:16
by OrcaSoul
I'm new to PHP, found and installed XAMPP - and was able to run the C:/xampp/htdocs/xampp/splash.php file by entering http://localhost/xampp/splash.php in Firefox.

But when I try to save & run a simple script named c:/xampp/htdocs/xampp/MYphpinfo.php using http://localhost/xampp/MYphpinfo.php
<?
phpinfo();
?>

it doesn't run - or all I get is a blank page.

So, what is the rule for locating files in the XAMPP folder, and what is considered the "root" folder?

Re: Puzzled about where to put files

PostPosted: 25. August 2009 08:07
by aj123cd
c:/xampp/htdocs/MYphpinfo.php
it should work

Re: Puzzled about where to put files

PostPosted: 25. August 2009 10:47
by Wiedmann
and what is considered the "root" folder?

Your root folder is the DocumentRoot ("C:\xampp\htdocs")

Code: Select all
<?

Use:
Code: Select all
<?php

Re: Puzzled about where to put files

PostPosted: 25. August 2009 17:46
by OrcaSoul
OK, thanks to both - that seems to have cleared it up!