The slash problem does indeed come from the secure server running php4 as a
cgi rather than as a module. The non-secure server is running php4 as a
module.
The regex seemed works well up until the order is committed. Something
coughs and sputters after that....especially when a user in not logged in.
Just though I would update the thread. Still no resolution. Thanks for
everyone chipping in on this.
Kevin
----- Original Message -----
From: Leon Atkinson <[EMAIL PROTECTED]>
To: FreeTrade <[EMAIL PROTECTED]>
Sent: Wednesday, December 20, 2000 8:58 PM
Subject: Re: [FreeTrade] Weird Slash // Problem
Kevin, are you sure the SSL server is running PHP 4? Well, in any event, I
guess you need to detect whether you have a slash on the end of
dirname($SCRIPT_NAME) and add one if you don't. You can use a regular
expression like
$temp_ExternalPath = dirname($SCRIPT_NAME);
if(!ereg(".*/$", $temp_ExternalPath))
{
$temp_ExternalPath .= "/";
}
define("EXTERNAL_PATH", $temp_ExternalPath);
But I'd be really interested to know if the Web server on 443 is really
running PHP 4 as an Apache module.
Leon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]