RE: [PHP] what will be the output for this pgm?

From: Date: Wed, 05 Sep 2001 18:17:25 +0000
Subject: RE: [PHP] what will be the output for this pgm?
Groups: php.general 
Request: Send a blank email to php-general+get-66076@lists.php.net to get a copy of this message
> -----Original Message----- > From: Balaji Ankem [mailto:balaji.ankem@wipro.com] > Sent: Tuesday, September 04, 2001 3:36 PM > To: Renze Munnik > Cc: php-general@lists.php.net > Subject: [PHP] what will be the output for this pgm? > > > what will be the output for the following program? > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > <?php > $foo=$HTTP_SERVER_VARS["HTTP_REFERER"]; > echo $foo; > ?> > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > For me it is printing the blank value. That's what I'd expect, if you're running that script directly. The referrer variable generally only gets a value if you reached the script by clicking on a link. --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell

« previous php.general (#66076) next »