How To Use PHP require() Directive for Relative Paths

RegisterLogin
How To Use PHP require() Directive for Relative Paths
Post Description: How To Use PHP require() Directive for Relative Paths
Tags: How, To, Use, PHP, require(), Directive, for, Relative, Paths
This Post Was Posted On Feb 29, 2008 By web hosting #1172
If you want to use the relative path to a script you can use the require() directive to include the contents to the php file:



     Code:
<?
require(dirname(__FILE__)."/path/relative/file_to_include.php");
?>
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Tue Dec 20, 2011 12:56 pm
Powered by: Webune Forums V3