Re: [PHP] How do I get referer in php?

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 22:10, John Nichel wrote: > Well, what do ya know, it is. Since when did a comma become a > concatenation operator??? That's it, I'm going home. ;) It didn't. It works for echo because echo accepts more than one parameter passed to it separated by commas. -- Jaso

Re: [PHP] How do I get referer in php?

2004-11-18 Thread John Nichel
John Holmes wrote: John Nichel wrote: Didn't notice that those were commas and not periods either, eh? ;) Didn't notice the result is the same either way, eh? ;) Well, what do ya know, it is. Since when did a comma become a concatenation operator??? That's it, I'm going home. ;) -- John C. Nic

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Zareef Ahmed
PROTECTED] Subject: Re: [PHP] How do I get referer in php? John Nichel wrote: > M. Sokolewicz wrote: > >>> I'm sure he meant >>> >>> echo '',print_r($_SERVER,1),''; > > ---^---^ > >>> then... ;)

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
John Nichel wrote: M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) Didn't notice the result is the same either

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Nichel
M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PR

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
John Holmes wrote: M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even m

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
John Nichel on Wednesday, November 17, 2004 2:01 PM said: > M. Sokolewicz wrote: >>> I'm sure he meant >>> >>> echo '',print_r($_SERVER,1),''; > ---^---^ > >>> then... ;) >>> >> hadn't noticed that param... I feel ashamed... :$ >> >

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even more, it adds to con

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
Chris W. Parker wrote: Brent Clements on Wednesday, November 17, 2004 11:55 AM said: Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Yes, and more. echo "",print_r(

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 13:54 -0600, Brent Clements wrote: > Let's say I have a page at another site that links to a php script on my > server. Is there anyway to get the referrer to the php script using php? > > Look in the $_SERVER array. -Robby -- /*** *

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
Brent Clements on Wednesday, November 17, 2004 11:55 AM said: > Let's say I have a page at another site that links to a php script on > my server. Is there anyway to get the referrer to the php script > using php? Yes, and more. ",print_r($_SERVER),""; -- PHP Gen

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Randy Rinehart
Yes, you should be able to use $_SERVER['HTTP_REFERER']; -Randy Rinehart - Original Message - From: "Brent Clements" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 1:54 PM Subject: [PHP] How do I get referer in php? > Let's say I have a page at an