Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies


advice please

2:05 pm on Jul 1, 2007 (gmt 0)

10+ Year Member

I am very much a newbie so I hope this is not a daft question.
My website is small (20 pages) and I wish to include a file into say 15 of the pages not all of them. Can this be done with includes?

Thanks for your time.


[edited by: shug at 2:10 pm (utc) on July 1, 2007]

2:10 pm on Jul 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Yea, go to the files and add a line similar to the following:



2:18 pm on Jul 1, 2007 (gmt 0)

10+ Year Member

Thanks for your reply. Forgive me if I dont grasp this as I am new at this.

So lets say I want the following file included in the first 15 pages but not the last 5.

include("new_file.php"); As I understand it new_file.php will be included in all my pages.


2:45 pm on Jul 1, 2007 (gmt 0)

10+ Year Member

Sorry, The penny has dropped. I understand now.