Lirae.co.uk

  Skip to content?
 

Absolute Path

For some PHP scripts / tutorials, you might need something called an "absolute path" or "server path".

To find out what your absolute or server path is, just paste the following snippet into a new document, save it as a ".php" file, upload it to your site and view that file with your browser. Your path will be shown on the screen.
<?php print trim(strip_tags($_SERVER['DOCUMENT_ROOT']));?> Make sure you delete the file once you've got your path written down somewhere safe. :)

 
 
 

All content is copyright © 2004-2008 Carlee Tibbs, unless stated otherwise.

Jump To The Top Of The Page