Dezina Blog

Information: Links: Tips : Tricks : Tutorials
XML Feed
Web Hosting
Web Hosting


04
May

How to..Determine Server Root Path for domain

To find out the full (and correct) pathway to the root of your domain do this:

1. Create a new text document on your desktop and name it cwd.php. Ignore the warning about changing the file type.

2. Put this code into it:

< ?php
$p = getcwd();
echo $p;
?>

3. Upload it to the root of your domain via FTP.

4. Go to http://www.yourdomain.com/cwd.php via your browser and printed on the screen will be the full pathway to the root of your domain.

5. Write down that pathway and then delete the cwd.php file from your hosting.

Comments are closed.

Powered by Wordpress Copyright 1997-2006..Dezina