PHP Included files writing their own content from Importer values ...

Posted by Adrian on Stack Overflow See other posts from Stack Overflow or by Adrian
Published on 2010-04-03T11:03:09Z Indexed on 2010/04/03 11:13 UTC
Read the original article Hit count: 253

Filed under:
|
|

Hello,

I have a index.php file that will include several external files:

"content/templates/id1/template.php" "content/templates/id2/template.php" "content/templates/id3/template.php" etc.

All these files are loaded dynamically into index.php (it reads all folders inside "templates" directory and then includes every "template.php" file).

I want to make "template.php" to have the same code in all the "id1,id2,id3" folders, BUT to load values from index.php depending in which folder it stays..

How can I do that? Thank You!

© Stack Overflow or respective owner

Related posts about php

Related posts about include