Hi
Im admining a server which runs 4.2.2 and a user has informed me of a problem they've encountered. I personally know nothing about php coding but i thought id ask here anyway.
Apparently part of his site isnt working, and the exact same script works on another provider he's used.
this is his script:
<?
$today = date("l F d, Y");
?>
<HTML>
<HEAD>
<META NAME="Author" CONTENT="Rey">
<TITLE>The Dead One's | [dead]</TITLE>
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#FFFFFF">
<center>
<a href="index.php?dead=main">Home</a> | <a href="index.php?dead=news">News</a> | <a href="index.php?dead=rules">Channel Rules</a> | <a href="">Soon</a>| <a href="">Soon</a>
<? print($today); ?>
</center>
<!-- Begin Table -->
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="679" HEIGHT="433" ALIGN="center">
<TR>
<TD ROWSPAN="1" COLSPAN="3" WIDTH="679" HEIGHT="75">
<IMG NAME="layout30" SRC="layout3_1x1.jpg" WIDTH="679" HEIGHT="75" BORDER="0"></TD>
</TR>
<TR>
<TD ROWSPAN="2" COLSPAN="1" WIDTH="261" HEIGHT="358">
<IMG NAME="layout31" SRC="layout3_2x1.jpg" WIDTH="261" HEIGHT="358" BORDER="0"></TD>
<TD BACKGROUND="layout3_2x2.jpg" ROWSPAN="1" COLSPAN="1" WIDTH="384" HEIGHT="327" VALIGN="top">
<?
if($dead)
{
$dead = basename($dead);
$dead .= ".php";
if (is_file("$dead"))
{
include($dead);
}
else
{
echo "The file you are looking for, index.php?dead=$dead is missing";
}
}
else
{
include("main.php");
}
?>
</TD>
<TD ROWSPAN="2" COLSPAN="1" WIDTH="34" HEIGHT="358">
<IMG NAME="layout33" SRC="layout3_2x3.jpg" WIDTH="34" HEIGHT="358" BORDER="0"></TD>
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="384" HEIGHT="31">
<IMG NAME="layout34" SRC="layout3_3x1.jpg" WIDTH="384" HEIGHT="31" BORDER="0"></TD>
</TR>
</TABLE>
<!-- End Table -->
</BODY>
</HTML>
He says he thinks the problem is with the path but doesnt know which option my be wrong in the php config.
the site is http://home.thelight.org.uk/~dead/
He has told me that instead of displaying the text on each page, when clicking on an option at the top, it should generate an error saying the file doesnt exist.
If someone can suggest something, or tell me of more information which would aid solving this let me know.
thanks
Simon