Home Tutorial Php Examples PHP Get Base Directory

 
 

PHP Get Base Directory
Posted on: October 9, 2009 at 12:00 AM
Advertisement
PHP Get Base Directory tutorial gives you an example to get the base directory

PHP Get Base Directory

 To know the base directory we may use $_SERVER['DOCUMENT_ROOT'];

Code:

<?php

//to know your base directory

print ($_SERVER['DOCUMENT_ROOT']);

?>

 

Output:

C:/wamp/www/

Advertisement

Related Tags for PHP Get Base Directory:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 9, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com