Thanks for that regex.  It workes like a charm.  All is running php4.  I
have pulled phpinfo through the ssl server and the regular server.

Happy New Years to all!

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]

Reply via email to