Use require("$DOCUMENT_ROOT/includes/folder/file.inc")

from any place on you website...

in other words you need to use the full path to the file.

Cheers,
Maxim Maletsky



-----Original Message-----
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 3:05 AM
To: PHP User Group
Subject: [PHP] require('asdf')


Hello,

I am using the require() function to open up the head of my pages.  In the
head.php file it requires something relative to its path.  What I want to do
is be able to require('head.php') without having to copy all the files
head.php requires into the folder of the script using this head.php file.

I hope you can understand that thanXor

Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to