note 52734 deleted from function.include by didou

From: Date: Thu, 12 May 2005 12:36:30 +0000
Subject: note 52734 deleted from function.include by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89324@lists.php.net to get a copy of this message
Note Submitter: master_at_tonextone_dot_com ---- '.'(dot) in include_path seems not always mean the directory where the INCLUDER exists. arrange simple scripts, like this: |-- includer.php |-- includee_3.inc `-- subdir/ |-- includee_1.inc |-- includee_2.inc `-- includee_3.inc here: ----------------------------- ./includer.php <?php echo(get_include_path() . '<br />'); include('./subdir/includee_1.inc'); ?> ----------------------------- ----------------------------- ./subdir/includee_1.inc <?php include('includee_2.inc'); include('includee_3.inc'); ?> ----------------------------- ----------------------------- ./subdir/includee_2.inc, ./subdir/includee_3.inc, ./includee_3.inc (all the same) <?php echo(__FILE__ . '<br />'); ?> ----------------------------- OUTPUT: ----------------------------- .:/usr/local/lib/php/ /full/path/to/subdir/includee_2.inc /full/path/to/includee_3.inc ----------------------------- did you know?

« previous php.notes (#89324) next »