Absolute Path

This entry was posted 5 years, 1 month ago.

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. :)

No related posts.


Tags: , , ,



No Comments On “Absolute Path”

No comments yet, would you like to be the first to comment?

Pings/Trackbacks

  1. Div Skinning · Lirae.co.uk
  2. Iframe Skinning · Lirae.co.uk



Comment on “Absolute Path”





 

 
 
Copyright © Carlee Tibbs 2006-2010. · Archives · Search · Sitemap · Top ↑