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

From: Date: Wed, 12 Jul 2000 14:58:30 +0000
Subject: RE: [PHP-WIN] Code that works under ISAPI not working under CGI, any suggestion s?
Groups: php.windows 
Request: Send a blank email to php-windows+get-1046@lists.php.net to get a copy of this message
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? I looked in to the phpinfo file and this seemed like something that might work, and it does! But I really want to know why... AND if I've made a mess doing it this different way... OR if there is a better way... John --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer Licking County, Ohio, USA 740-349-3631 > -----Original Message----- > From: Asendorf, John [SMTP:JAsendorf@lcounty.com] > Sent: Wednesday, July 12, 2000 10:30 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Code that works under ISAPI not working under CGI, > any suggestion s? > > I just changed my installation of PHP from ISAPI to CGI so that I could > use > a search script... > > now an IMPORTANT piece of my code doesn't work. > > IIS 4, PHP 4, WinNT > > The code creates $levels used by three different includes > > CODE------ > > //establish page level and assign it $levels > > $URL_vars=explode("/",$URL); > > $URL_parts=sizeof($URL_vars); > $URL_parts=$URL_parts-1; > $levels=""; > $i=1; > if($i<$URL_parts) { > while($i < $URL_parts) { > $levels.="../"; > $i++; > } > } > > ------ > > Thanks in advance, > > John > > --------------------- > John Asendorf - jasendorf@lcounty.com > Web Applications Developer > Licking County, Ohio, USA > 740-349-3631 > > > -- > 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 (#1046) next »