[thelist] PHP Includes not including

Jonathan T. Sage jtsage at gmail.com
Tue Jan 4 21:20:23 CST 2005

include '../inserts/header.php'; 

the file http://reclaimdemocracy.org/articles_2005/inserts/header.php
does indeed not exist.  remember include is a file system operation
(the way you are calling it), not a URL/HTTP operation.

good luck! ~j

On Tue, 04 Jan 2005 20:06:13 -0700, Rich Points <rich at richpoints.com> wrote:
>  I think it's working because I get the following message
>  Warning: main(inserts/header.php): failed to open stream: No such file or
> directory in /opt2/home3/rd6714/public_html/articles_2005/1_subhead.php on
> line 13
>  Jonathan T. Sage wrote: 
>  <?php include("./inserts/header.php"); ?> should be correct. Is the file
> processing at all? Look at the source and make sure the php code isn't still
> there after download. On Tue, 04 Jan 2005 19:13:32 -0700, Rich Points
> <rich at richpoints.com> wrote: 
>  Howdy, I'm trying to use PHP includes for common elements like a header and
> footer throughout a site and I'm having trouble. I've used PHP Includes on
> other sites and they have worked fine, as far as I can tell I'm duplicating
> the syntax but no cigar. The code I'm using is to call the insert is as
> follows <?php include("inserts/header.php"); ?> I've also tried <?php
> include("/inserts/header.php"); ?> <?php include "/inserts/header.php"; ?>
> <?php include("full_absolute_path/inserts/header.php"); ?> <?php
> include("/full_absolute_path/inserts/header.php"); ?> I contacted my host
> and asked them if they know what's going and they said it's beyond the scope
> of their tech support. Here is my development page
> http://reclaimdemocracy.org/articles_2005/1_subhead.php Anybody out there
> know whats going on with this? Thanks Rich -- * * Please support the
> community that supports you. * * http://evolt.org/help_support_evolt/ For
> unsubscribe and other options, including the Tip Harvester and archives of
> thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

Jonathan T. Sage
Theatrical Lighting / Set Designer
Professional Web Design

[jtsage at gmail.com]

More information about the thelist mailing list