Re: Filereference and require()

From: Date: Wed, 24 Jan 2001 00:06:45 +0000
Subject: Re: Filereference and require()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36296@lists.php.net to get a copy of this message
You can provide the full path: require "/usr/local/share/apache/htdocs/deep/down/dir/a_specific_file"; You can alter include_path in php.ini to have "/usr/local/share/apache/htdocs/deep/down/dir:./:/usr..." in it -- Visit the Zend Store at http://www.zend.com/store/ 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 ----- Original Message ----- From: Rasmus Resen Amossen <spunk@rhk.dk> Newsgroups: php.general Sent: Tuesday, January 23, 2001 11:46 AM Subject: [PHP] Filereference and require() > I have a file, lets call it genericfile.php, containing a > require("a_specific_file"); > > Now, I want to use (thats include) genericfile.php in many of my other > .php-files in the WHOLE directorytree. The problem is that > "a_specific_file" can't be found trough genericfile.php if this is > included someplace other in the directory tree. > > How can I tell php not to make defaultpath to the toplevel require() > funcion call? > > -- > Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen > Jagtvej 120, -244 | http://www.math.ku.dk/muh > 2200 Kbh. N | http://w1.1444.telia.com/~u144400001 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36296) next »