Re: 2what will be the output for this pgm?

From: Date: Thu, 06 Sep 2001 02:11:50 +0000
Subject: Re: 2what will be the output for this pgm?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66147@lists.php.net to get a copy of this message
On Wed, 5 Sep 2001 06:45, Balaji Ankem wrote: > Hi friend, > 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. > > Thanks in advance > > Regards > -Balaji There will only be a value in HTTP_REFERER if the page was referenced via a link from elsehwere (generally). If you just call the script by putting its URL in the LOCATION box, it will be empty. Read The Fine Manual chapter 7 on variables for more information. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA No one ever said "if I'd only spent more time in the office"

« previous php.general (#66147) next »