Puzzled about where to put files

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

Puzzled about where to put files

Postby OrcaSoul » 25. August 2009 07:16

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?
OrcaSoul
 
Posts: 57
Joined: 24. August 2009 23:51

Re: Puzzled about where to put files

Postby aj123cd » 25. August 2009 08:07

c:/xampp/htdocs/MYphpinfo.php
it should work
aj123cd
 
Posts: 62
Joined: 03. June 2009 08:19
Location: London,UK

Re: Puzzled about where to put files

Postby Wiedmann » 25. August 2009 10:47

and what is considered the "root" folder?

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

Code: Select all
<?

Use:
Code: Select all
<?php
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Puzzled about where to put files

Postby OrcaSoul » 25. August 2009 17:46

OK, thanks to both - that seems to have cleared it up!
OrcaSoul
 
Posts: 57
Joined: 24. August 2009 23:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 41 guests