View Single Post
  #4 (permalink)  
Old Jun 20th, 2006, 18:36
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Passing Variables to a require_once() Page

The require_once() function is only needed when you are pulling in a file of functions and you code is such that this command could execute more than once.

If you just need to pull in a common html file, such as the navigation for a site, then you should be using the
Code: Select all
include('navigation.html');
instruction.

Any php code within this file can pick up any variables set by other snippets of php elsewhere in the host file.
Reply With Quote