homepage Welcome to WebmasterWorld Guest from 50.17.27.205
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Includes
advice please
shug




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

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




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

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

include("new_file.php");

Hab

shug




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

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




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

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

Shug

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved