Re: php includes and ajax [message #173116 is a reply to message #173105] |
Tue, 22 March 2011 10:50 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Mon, 21 Mar 2011 19:06:58 -0500, Lwangaman wrote:
> Getting back to the point: my question is about how server-side php
> includes are to be handled semantically in a php file (<deleted
> irrelevancy>).
You have four choices:
include ("filemname.php");
include_once ("filemname.php");
require ("filemname.php");
require_once ("filemname.php");
For discussion of the implications of the various methods, and various
opinions on which is best, try googling "php include require".
Various people using this group have opinions on these, and they are not
always in agreement.
Rgds
Denis McMahon
|
|
|