note 21635 deleted from function.require by spic

From: Date: Wed, 28 Aug 2002 08:09:40 +0000
Subject: note 21635 deleted from function.require by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35863@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.

« previous php.notes (#35863) next »