note 21635 added to function.require

From: Date: Tue, 21 May 2002 20:17:05 +0000
Subject: note 21635 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-30863@lists.php.net to get a copy of this message
When using require I found that relative "../.." worked fine but I had trouble working with $DOCUMENT_ROOT. Here's what worked for me <?PHP require ($DOCUMENT_ROOT."/menubar.php") ?> This way I could be a few directories away and still reference a file. Oh all things I found this in a an error message cached on a search engine. I very new to PHP, and I am pointing out the $VALUE."LITERAL" with the dot. Doubtless I will forget and this tid-bit will be of use to myself in the future. -- http://www.php.net/manual/en/function.require.php http://master.php.net/manage/user-notes.php?action=edit+21635 http://master.php.net/manage/user-notes.php?action=delete+21635 http://master.php.net/manage/user-notes.php?action=reject+21635

« previous php.notes (#30863) next »