Re: virtual nulls include problem: It really happen
| From: | Alfredo Yong | Date: | Sun, 02 Sep 2001 22:22:13 +0000 |
| Subject: | Re: virtual nulls include problem: It really happen | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65678@lists.php.net to get a copy of this message | ||
Richard Lynch wrote (Many thanks Rick for this):
I don't see it also, but it really happens: when using the virtual(), the include() can't find its way. I've just checked it again: I comment out the virtual() and the include() works. barra.php DOES lives next to (in the same directory as) main.phpI don't see how the virtual() is involved here at all:<% virtual ("../../../../headlvl4.shtml"); %>This works fine for the header, but makes an error when the include built in function calls the php script that shows the main panel of the page:
Warning: Failed opening './barra.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/public/blabla/bla/re-blah/another_blah/blahh/blahblahblah/main.php on line 44 I've tried to put the dot ahead the name but it is no working either.Either barra.php lives next to (in the same directory as) main.php, or it lives in /usr/local/lib/php, or you're not going to get it to work. You'll have to change your include_path to have the path of barra.php, or you'll have to change your include './barra.php' to be relative to one of the two paths in include_path. PS I always used include_path "./:..." rather than just ".:...", but I'm not sure it matters. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm