Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP Include not Working Correctly

0 views
Skip to first unread message

Harlequin

unread,
Jul 9, 2004, 2:14:27 PM7/9/04
to
Hi all.

in a desperate effort to whittle down my code I decided to use an include
statement in my webpage:

http://www.arrasresources.co.uk

But the include statement:

<?php include "Header.inc"; ?>

Brings in the correct file but not an images referenced in the CSS file,
just the background and formatting.

Has anyone come across this before...?

--
-----------------------------
Michael Mason
Arras People
www.arraspeople.co.uk
-----------------------------


Kody Brown

unread,
Jul 9, 2004, 3:52:08 PM7/9/04
to
The only thing I can think of is that the path from your include file is
being loaded from a different location than your source. But, I really don't
know how PHP handles includes.

For instance, your source file is being loaded from
http://server/source.file where your include file may be loaded into the
browser from http://server/includes/css.file. This is a problem, usually,
because people may setup their css files to use its path, when really the
css paths should be based from the source file's path.

Does this make sense? Again, it may not be your issue, so hopefully this
will help!

--
-Kody
kody at weekendtech dot net
"Custom ASP.Net Web Controls"

"Harlequin" <michae...@arraspeople.co.uk> wrote in message
news:eRaQQCe...@TK2MSFTNGP11.phx.gbl...

0 new messages