note 44172 added to function.include

From: Date: Fri, 16 Jul 2004 15:51:44 +0000
Subject: note 44172 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-73393@lists.php.net to get a copy of this message
If you wish to include a file based on the server's root, use this: <?php // Works include($_SERVER['DOCUMENT_ROOT'] . '/sessionStart.php'); // Doesn't Work include( '/sessionStart.php'); ?> I had many problems with this trying to include a file based off of the site's root. Hope this saves someone else some time. ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44172 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44172&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44172&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73393) next »