Wednesday, October 24, 2012

How to find your absolute path

To find out what your absolute path is[1], copy the following code into a text editor (i.e. Notepad, TextEdit etc), save the file as a .php naming it whatever you want (i.e anyfilename.php.).
Using your FTP software, ftp the file you have just created to your root folder. Open a web browser and type in http://www.yourdomain.com/filename.php

<?php
    $path = getcwd();
    echo "Your Absoluthe Path is: ";
    echo $path;
 ?>

No comments:

Post a Comment