note 27473 added to function.include
| From: | daenders at NOSPAMyahoo dot com | Date: | Sat, 07 Dec 2002 00:51:01 +0000 |
| Subject: | note 27473 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40446@lists.php.net to get a copy of this message | ||
If you have some code like the following in your PHP file:
include "../include.php";
and it isn't working for you, here is something that works. I discovered this after MUCH
searching!
include dirname(__FILE__)."/../include.php";
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+27473
http://master.php.net/manage/user-notes.php?action=delete+27473
http://master.php.net/manage/user-notes.php?action=reject+27473