Re: The Include Eludes

From: Date: Mon, 27 Nov 2000 21:52:32 +0000
Subject: Re: The Include Eludes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27486@lists.php.net to get a copy of this message
Maxim Maletsky wrote: > > when you'll be awake: Probaly never :-) > > if you ever used require() successfully then with include() NOTHING should > change in your paths. > > example: > > assuming that require('/home/httpd/html/site/this/file.inc') worked for you > since the beginning of times: > then include('/home/httpd/html/site/this/file.inc') will work there just as > well. > > Try simply to replace the function names on a test script that already runs > perfectly with require() and you will understand the difference; > > Cheers, > Maxim Maletsky. I feel like a real idiot as the problem was a typo in the included files name, I was so sure that the include path wasn't working that I jumped the gun a bit. Thanks for everyones help, I have learn't an important lesson here I hope :-)) Regards, Joseph

« previous php.general (#27486) next »