Include file with absolute path





3
Date Submitted Mon. Jul. 13th, 2009 3:05 AM
Revision 1 of 1
Scripter Cloudgen
Tags absolute | File | include | Path | PHP
Comments 0 comments
One of the simlest way to include a php file using absolute path

<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/yourIncludeFile.php");
?>
 

Comments

There are currently no comments for this snippet.

Voting

Votes Down