From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 16 May 2006 11:47
To: [email protected]
Subject: Problem with the path separator and $0

> I have the same script in 2 different servers: 
> 
> 1. Win2003 + Apache 2 
> 2. Win2003 + IIS 
> 
> the script uses $0, and in the first case, the result is
x:/XXXX/XXXX/XXX.cgi -> notice the "/" bar... 
> in the second one the path is x:\XXX\XXX\XX -> notice again the change
of the bar, this time: "\" 

Well, both are valid ways to represent a path on Win32, so what exactly
is your problem. I could guess that your code expects the path to be
represented in only one of those formats, but that is all it would be, a
guess.

(BTW, "/" and "\" are more commonly referred to as forward and backward
slash, while bare usually refers to "|".)

> 
> Why can i be getting that difference? 

It is probably down to the way that your web servers run CGI programs.

> Please, don't send me answers telling me to change the original
code... I can't. 

Well, assuming my guess is correct, and you can't configure your web
servers, then changing your code seems to be the only alternative.

HTH

-- 
Brian Raven 


=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to