Page 1 of 1

Setting Referer

Posted: Thu Apr 15, 2004 10:26 am
by Etherguy
I was wondering if there is a way to set the referal address that is passed to a web server. I am trying to test out a script that looks at the referal address and then populates with different prices based on the referal.

Since I am doing this in a labbed enviroment, I need to be able to change the referal on the fly ( ie... google, yahoo) as the source.

Any suggestions ??

Posted: Thu Apr 15, 2004 4:24 pm
by Slippy
Do you mean like?

Code: Select all

<?php 
echo $_SERVER&#1111;'HTTP_REFERER']; 
?>
or the other way? If you mean the other way... check out CURL... it has functions that can be compiled into PHP. You can also run it from the command line... CURL allows you to change such items when you request the page.