How To Use PHP Require() Directive For Relative Paths

Welcome Login | Register

How To Use PHP Require() Directive For Relative Paths
  Forums Index
      » PHP Forums
        » » How To Use PHP require() Directive for Relative Paths



How To Use PHP Require() Directive For Relative Paths
Post Description:
Post Tags: how, to, use, php, require, directive, for, relative, paths, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 620 Times Since Tue Sep 05, 2006 8:25 am Posted By hostman with 0 replies
Next Post »» Show Display Relative Root Path PHP Function Absolute Path Linux Hosting
How To Use PHP Require() Directive For Relative Paths
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






Share
HTML Link:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About How To Use PHP Require() Directive For Relative Paths




(0) Comments