Welcome to WebmasterWorld Guest from 54.159.26.69

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Includes

advice please

     

shug

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.

Regards
Shug

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

Habtom

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:

include("new_file.php");

Hab

shug

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

10+ Year Member



Hab,
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.

Shug

shug

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

10+ Year Member



Sorry, The penny has dropped. I understand now.
Thanks.

Shug

 

Featured Threads

Hot Threads This Week

Hot Threads This Month