I am having a problem or I am misunderstanding how the URLs work with require_once().
It is my understanding that if the first character of the URL is a '/' then PHP will look for the file starting at the document root.
Is this not correct?
I keep getting file not found errors.
Thanks in advance...
Randy
URLs in require_once() not working
Moderator: General Moderators
-
RandyJohnson
- Forum Newbie
- Posts: 1
- Joined: Sun May 03, 2009 4:47 pm
Re: URLs in require_once() not working
The manual page for include tells you everything you need to know.
The fact that it doesn't mention filenames beginning with / means they'll be treated like they should be: as absolute filenames. Meaning the root of the filesystem, not the document root.
The fact that it doesn't mention filenames beginning with / means they'll be treated like they should be: as absolute filenames. Meaning the root of the filesystem, not the document root.