[thelist] PHP require_once links not working?

Mark Groen evolt at markgroen.com
Thu Aug 17 21:18:21 CDT 2006

On Thu, 2006-08-17 at 16:17 -0500, Pringle, Ron wrote:
> I'm having problems with trying to call an includes using require_once. If I place the page making the call within the directory, it works. If I try placing the page outside of the directory and include that directory in the path name, it gives me a blank screen.
> Given a directory name of validation, placing the file in the dir and making the call like:
> require_once('_includes/classes/validation/ValidationSet.php');
> works fine.
> Placing the file outside of the validation dir and changing the call to:
> require_once('validation/_includes/classes/validation/ValidationSet.php');
> fails.

Put this error reporting code at the top of your file:


The other posts are most likely correct in that it's a path issue:
include, require, require_once etc. all are dependent on one another in
some sort of way and everyone runs into this problem at some point in

The php.net web site and it's mirrors are a wealth of information if you
read the comments below each item in the docs, use the php 4 docs if you
are learning, the php5 docs are somewhat more specific to that release
so you might not find what you are looking for in that section but it's
in 4.

Gabe on the first post on this page ran into an interesting outcome of


More information about the thelist mailing list