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 ??
Setting Referer
Moderator: General Moderators
Do you mean like?
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.
Code: Select all
<?php
echo $_SERVERї'HTTP_REFERER'];
?>