note 20629 modified in function.include-once by didou

From: Date: Tue, 21 Oct 2003 07:43:42 +0000
Subject: note 20629 modified in function.include-once by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58968@lists.php.net to get a copy of this message
I think what dumper.jumper at mail dot 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'); --was-- 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

« previous php.notes (#58968) next »