[Phpwm] An problem with PHP echo

sparkes sparkes at westmids.biz
Mon Feb 20 07:51:32 GMT 2006


On Sun, 19 Feb 2006 21:56:15 -0000
"Peter Crouch" <pccrouch at bcs.org.uk> wrote:

> <?php
>   require('http://localhost/include/footer.php');
> ?>
> 

> When the require() statements are as above neither of the variables
> are displayed but if the statements are changed to 
> require('include/header.php'); and
> require('include/footer.php'); then the variables are displayed as
> expected.

The first example is relative to the filesystem and is included fully.
the second example has an absolute uri and is treated as remote by
php.  It looks like the local files are fully trusted and the remote
ones are treated as second class citizens.

use only filesystem relative urls and not fully qualified uri's to get
the effects you are after

sparkes
-- 
More uninformed crap on my blog http://sp.arkes.co.uk
The Internet: where men are men, women are men, and children are FBI
agents




More information about the Phpwm mailing list