Re: Code that works under ISAPI not working under CGI,any suggestion s?

From: Date: Wed, 12 Jul 2000 15:26:35 +0000
Subject: Re: Code that works under ISAPI not working under CGI,any suggestion s?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1047@lists.php.net to get a copy of this message
"Asendorf, John" wrote: > I think I figured it out... I changed the code as follows.... > > $URL_vars=explode("\\",$PATH_TRANSLATED); > > can anyone explain to me WHY this worked? > > > $URL_vars=explode("/",$URL); John, This appears to be a path-structure issue and the differences between Unix pathnames and Windows pathnames. As Windows uses backslashes and Unix uses frontslashes to denote directory structure, using frontslashes on a Windows PHP installation MIGHT cause problems. I say MIGHT because as far as I knew, PHP was supposed to translate these for you correctly... However, when you're using a system variable like $PATH_TRANSLATED, it most likely will only return the system-specific path (something like "/home/john/phpdir/blah.php" on Unix or "c:\users\john\phpdir\blah.php" on WinNT/2000). Although, from the looks of it, the $URL variable should come in with frontslashes, instead of backslashes.... maybe, maybe not. If you echo the $URL variable back, what does it look like? That help at all? -- Andy Hoffman Web Developer Bristol-Myers Squibb office: LVL G1.2607 email: andy.hoffman@bms.com phone: 609-252-5788

« previous php.windows (#1047) next »