- Forums
- PHP
- How To Use PHP Require() Function Directive For Relative Paths
this post will show you with an example php script code how to use require() function so you can use it on your php script directives for the relative paths and absolute paths [959], Last Updated: Sat May 18, 2024
wallpaperama
Tue Sep 05, 2006
0 Comments
907 Visits
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:
<?php
require(dirname(__FILE__)."/path/relative/file_to_include.php");
?>