PDA

View Full Version : including a php file which itself has includes?


bazz
07-25-2005, 04:58 PM
HI,

quicky question for you guys before I start working on this and spending loads of time.

Is it possible to have a php file,which comprises several php includes (perl files), where that php file is then included in another php file. Will the processing all work throughout?

Bazz

SeeIT Solutions
07-25-2005, 06:11 PM
yes it does, but you need to make sure the paths you use are correct. For example...

in index.php you have
include_once("includes/header.php");

then in header.php you include settings.php that is also in the 'includes' folder
include_once("settings.php");

marek_mar
07-25-2005, 07:43 PM
If settings.php is included by head.php whichg is included by index.php then in head.php it should be include_once("includes/settings.php");... I think.