PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for the ‘ Include ’ Category

Include Function – Include A File Using PHP

The include function takes a file name and inserts that file’s contents into the script that calls the include function. You can type up a common header, footer or menu file that you want all your web pages to include. When you add a new page to your site, instead of having to update the links on several web pages, you can simply change the Menu file. Similarly if you want to change or add a link in footer or you want to change image in header of website, you do not need to go to every page to do that and you just open up files footer and header and change these which will effect on all the website. It saves a lot of time.

(more…)

Tags:
Posted in: Include
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Include VS Require Functions in PHP

As php.net clearly describes, the two constructs are identical in every way except how they handle failure.

(more…)

Tags: ,
Posted in: Include, Require
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

    


  Subscribe Via RSS
  Subscribe Via Email