RE: Re[2]: [PHP] virtual() test

From: Date: Fri, 28 Feb 2003 12:41:24 +0000
Subject: RE: Re[2]: [PHP] virtual() test
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137560@lists.php.net to get a copy of this message
> TR> Friday, February 28, 2003, 12:09:30 PM, you wrote: > JWH>> Can anyone with Apache verify that you can pass arguments inside of > a > JWH>> virtual() call? Something like: > > JWH>> Virtual("script.pl?id=1") > > JWH>> And have $id available within script.pl. > > JWH>> I don't have access to an Apache server right now to test, so thank > you > JWH>> very much. > > JWH>> ---John W. Holmes... > > JWH>> PHP Architect - A monthly magazine for PHP Professionals. Get your > copy > JWH>> today. http://www.phparch.com/ > > > TR> it shows up under > TR> _SERVER["QUERY_STRING"] => id=1 > > TR> I ran the following script (virt) in cgi-bin > > TR> #!/usr/bin/php > TR> <?php > TR> header('Content-type: text/plain'); > TR> echo "\n"; > TR> echo 'Test script report'; > TR> phpinfo(32); > ?>> > > TR> Then virtual('/cgi-bin/virt?id=1'); > > TR> -- > TR> regards, > TR> Tom > > > > That would be > > echo QUERY_STRING = "$QUERY_STRING" > > in perl So that's a YES, right? There's some way you could get that variable back, probably by parsing the $QUERY_STRING variable in Perl? I'm really not familiar with Perl, either, so I'm taking your word for it. :) ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#137560) next »