<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=079134518-09122005><FONT face=Arial><FONT size=2>Hi
all</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial><FONT
size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial><FONT size=2>I am trying to
include one page in another, but I get a discrepancy.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial size=2>The original page is
<A
href="http://www.pdinfo.co.uk/links/index.php">http://www.pdinfo.co.uk/links/index.php</A> and
I am including it in <A
href="http://www.pdinfo.co.uk/links.php">http://www.pdinfo.co.uk/links.php</A>.
As you can see, the original page works by itself, but once included, it does
not connect to the database and display the correct
information.</FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial size=2>The
index.php has a require statement in it which sets database
connection parameters and the like. Am I to assume that these require
statements will be confused by the script not being run in the correct
directory?</FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial size=2>If so, any thoughts
on how I can differentiate between loading from inside/outside the links
directory to make sure the require command always works?</FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079134518-09122005><FONT face=Arial
size=2>Simon</FONT></SPAN></DIV></BODY></HTML>