Re: #40650 [NEW]: philip
| From: | Glenn Cogan | Date: | Tue, 27 Feb 2007 03:40:21 +0000 |
| Subject: | Re: #40650 [NEW]: philip | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969375661@lists.php.net to get a copy of this message | ||
Philip, I can't seem to post -
I have a simple redirect form code on a business website that has worked great (until today). My
site is biltconstruction.com, the form field is at the top right. When launched, my script requires
another php page 'clientid.php' for access codes (this is uploaded asc II), if code is
valid it will redirect the person to the approriate webpage associated with the code, if code is
invalid, user gets invalid message.
My code mysteriously stopped working today after 6 years. The code is truly great, and offers a
great option to handling access codes and re-direct instruction on the server, rather than webpage,
but can anyone help me get it back to operational??!
This is the code that appears on every page on my site:
<?php
require ("E:\InetPub\Websites\biltconstruction\clientid.php");
if ($Cust_ID != '') {
$Cust_ID=strtoupper($Cust_ID);
$filename=$clientid["$Cust_ID"];
if ($filename) {
$filecontent=file("$filename");
$totalrows=count($filecontent);
$message='';
for ($i=0;$i<$totalrows;$i++) {
$message .= " $filecontent[$i]";
}
echo $message;
exit;
} else {
$strResponse = "<font color=white>Unauthorized Access!</Font><BR>";
}
} else {
$strResponse='';
}
?>
----------------------------------------------------------------------------------------------------------
This is the VERY simple code for the asc II php access code page that my script requires called
"clientid.php"
<?php
$clientid=array(
"legal" => "doc.php",
"floorplan" => "plan.php"
);
?>
Any ideas...
gc