Hello,
I recently upgraded from PHP 4 to 5 and I have some problems with my page directories now with the upgrade. I have my navigation tree set up as such
//// R A T E S /////////////////////////////////////////////////////////////////////////////
<tr>
<td height="14" width="15"><img src="/images/spacer.gif" width="15"></td>
<td height="14"><p>
<? if ($mid == "rates") { echo "<SPAN CLASS=\"curnav\">"; } ?>
<img border="0" src="/images/menu/bullet.gif">
<a href="/rates/"><b>RATES</b>-The talk of the town</a></td>
</tr>
<? if ($mid == "rates" || $sitemap == "1") { ?>
<tr>
<td height="14" colspan="2">
<ul><DIV CLASS="subnav">
<li><? if ($id == "1") { echo "<SPAN CLASS=\"cursubnav\">"; } ?>
<a href="<? echo "/rates/$htmod_dir/$htmod_index"; ?>1/">Loan Rates</a> </SPAN>
<li><? if ($id == "2") { echo "<SPAN CLASS=\"cursubnav\">"; } ?>
<a href="<? echo "/rates/$htmod_dir/$htmod_index"; ?>2/">Savings Rates</a> </SPAN>
<li><? if ($id == "3") { echo "<SPAN CLASS=\"cursubnav\">"; } ?>
<a href="<? echo "/rates/$htmod_dir/$htmod_index"; ?>3/">Certificate Rates</a> </SPAN>
<li><? if ($id == "4") { echo "<SPAN CLASS=\"cursubnav\">"; } ?>
<a href="<? echo "/rates/$htmod_dir/$htmod_index"; ?>4/">Home Loan Rates</a> </SPAN>
<li><? if ($id == "5") { echo "<SPAN CLASS=\"cursubnav\">"; } ?>
<a href="<? echo "/rates/$htmod_dir/$htmod_index"; ?>5/">Fees</a> </SPAN>
</ul></DIV>
</td>
<? } ?>
The variables of $htmod_dir and $htmod_index are held in an include with values of
$htmod_dir = "e";
$htmod_index = "4,815,162342/523";
For each directory I have a page that will define what includes should added for each page
$dirtitle = "Rates";
if ($_GET['id'] == "") {
$title = "Rates";
include('../includes/title.php');
include('../pages/rates/splash.htm');
} else if ($_GET['id'] == "1") {
$title = "Loan Rates";
include('../includes/title.php');
include('../pages/rates/loans.htm');
include('../pages/rates/rates_header.htm');
include('../pages/rates/loansdata.php');
include('secureddata.php');
include('unsecureddata.php');
include('homeequitydata.php');
include('../pages/rates/rates_footer.htm');
// There is a definition for each variable for the above tree, it just gets a little long for one post.
} else {
$title = "Error: 404";
include('../includes/title.php');
include('../pages/errors/404.htm');
include('../pages/sitemap/splash.htm');
Now in PHP 4 everything is okay doky, but now the only thing that will display is the index of each directory. Any other subheading will come up with an ISS 404. It will not display the custom error pages that I set up. I should mention that this is a W.indows I.ss M.ysql P.hp set up with PHP defined as CGI.
Any help or suggestions would be great.
Thank you.
Now with the build
}