943,172 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 19
  • PHP RSS
Sep 1st, 2010
0

help please

Expand Post »
Hi everyone I am new here. It has been a few years since I have done any php coding and need help.

My website is basically static and constant throughout the entire site except for the main content on the page. I know there is some way to use the PHP INCLUDES function so that when you click a link it will change the main content but not the whole page.

I found a thread on here of someone doing it but it does not explain how to use it.

http://www.daniweb.com/forums/thread12335.html

If someone could please explain how to do this or send me somewhere that already explains it that would be much appreciated.

Thanks
Adam
Reputation Points: 10
Solved Threads: 0
Newbie Poster
areese685 is offline Offline
1 posts
since Sep 2010
Sep 2nd, 2010
0
Re: help please
If you have a program that is working then imagine taking a section of that code, copying and removing it then being able to plug it back in from somewhere else. That is essentially what an Include / Require does. There are a variety of things that you can do with an Include. If you have parameters that are global to a system and you want to have available in every program, then you put them into a config module and include it everywhere. If you have headers and footers and other format bits that you want to include on every page, then you can use it for that as well. It is this latter usage that you are looking at.

This article may be useful as a starting point:
http://blog.themeforest.net/tutorial...outs-with-php/
Reputation Points: 210
Solved Threads: 228
Nearly a Posting Virtuoso
chrishea is offline Offline
1,389 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: user permission layout
Next Thread in PHP Forum Timeline: Redirecting to parent directory





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC