Re: Include files

From: Date: Mon, 12 Feb 2001 17:40:59 +0000
Subject: Re: Include files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39240@lists.php.net to get a copy of this message
Conover, Ryan wrote: > I have an include file foo.inc. I want to call a function that is in > another include file,say anotherfoo.inc, from the foo.inc. [..] > can I call an include from another include? Sure. > I tried the above but it fails opening the other include. > > Should I have the > ' "include"c:\\...\\anotherfoo.inc" ' > in the file that includes the Foo.inc? No, you can include what and where you want (provided it's valid PHP), but if you use relative paths, the paths all have to be relativ to the original file, the file that is called by the browser (or whatever you use to call your scripts). regards Wagner -- Three may keep a secret, if two of them are dead.

« previous php.general (#39240) next »