note 14254 added to function.include.php
| From: | anger at programmer dot net | Date: | Tue, 24 Jul 2001 10:50:06 +0000 |
| Subject: | note 14254 added to function.include.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15759@lists.php.net to get a copy of this message | ||
hello, for the include / require functions.
Sometimes it's a solution to use:
$chem = str_repeat( "../" , substr_count( str_replace( $DOCUMENT_ROOT,
"",dirname($SCRIPT_FILENAME) ) ,"/" ) );
exemple: include($chem."scripts/functions.php");
http://www.php.net/manual/en/function.include.php