note 38266 deleted from function.require by pollita
| From: | pollita@php.net | Date: | Sun, 14 Dec 2003 18:48:34 +0000 |
| Subject: | note 38266 deleted from function.require by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61941@lists.php.net to get a copy of this message | ||
Note Submitter:
----
When you really want to include another file in the same directory, you must write like follows:
<?php
require dirname(__FILE__) . '/foobar.php';
?>
<?php require 'foobar.php'; ?> does NOT means including foobar.php in the same
directory like the other languages. It means looking for 'foobar.php' through
include_path. Generally include_path contains '.', though, that '.' is just a
current *execusion* directory. Bear in mind!