note 20629 added to function.include-once

From: Date: Wed, 10 Apr 2002 18:12:39 +0000
Subject: note 20629 added to function.include-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-29072@lists.php.net to get a copy of this message
I think what dumper.jumper@mail.ee is saying is that if you include a file (say dir1/b.php) into another file (say dir2/a.php), and b.php contains something like include('c.php'), then it will be dir2/c.php that is included, NOT dir1/c.php Secondly, include_once() also works in combination with inlcude(). So in the following code, a.php would only be included once: include('a.php'); include_once('a.php'); -- http://www.php.net/manual/en/function.include-once.php http://master.php.net/manage/user-notes.php?action=edit+20629 http://master.php.net/manage/user-notes.php?action=delete+20629 http://master.php.net/manage/user-notes.php?action=reject+20629

« previous php.notes (#29072) next »