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

2001-09-06 Thread Sid

Of course there will not be any output. That's because when you type in the 
directly type the url in the browser there will not be any referer. Try 
putting a link from another domain to that page and you will get some 
output then / try visiting the page through a search engine. i.e make the 
page come up in you search results and then click on it and when you visit 
the page it will show you the domain of the search engine.

Hope this helps

At 02:05 AM 9/5/01 +0530, you 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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-09-05 Thread Balaji Ankem

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




--
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


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

2001-09-05 Thread Mark Roedel

 -Original Message-
 From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, September 04, 2001 3:36 PM
 To: Renze Munnik
 Cc: [EMAIL PROTECTED]
 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 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]