RE: [PHP-WIN] Code that works under ISAPI not working under CGI,a ny suggestion s?

From: Date: Wed, 12 Jul 2000 17:26:14 +0000
Subject: RE: [PHP-WIN] Code that works under ISAPI not working under CGI,a ny suggestion s?
Groups: php.windows 
Request: Send a blank email to php-windows+get-1050@lists.php.net to get a copy of this message
The first thing I tried was echoing the $URL variable and I got nothing. Nothing echoed... nada... and it didn't error out either... That's when I started poking around with phpinfo... I'm just happy that it works :) Thanks Andy for responding! John --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer Licking County, Ohio, USA 740-349-3631 > -----Original Message----- > From: Andy Hoffman [SMTP:andy.hoffman@bms.com] > Sent: Wednesday, July 12, 2000 11:27 AM > To: php-windows@lists.php.net > Subject: Re: [PHP-WIN] Code that works under ISAPI not working under > CGI,any suggestion s? > > "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 > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#1050) next »