August 15, 200917 yr Hi, heres the basic situation: I want page1.php to connect to page2.php via fopen and fread, then retrieve the outputted data that appears (this bit I have done already). However: I want page 2 to check that it has been refered from page1.php, and only display the outputted data if this is the case. I have tried using $HTTP_REFERER but no luck? Can anyone help here?
August 18, 200917 yr Author I no longer require an answer to this question as I have chagned the way I am going to create the code. Rathar than try and verify a license key and run the site locally, I'm going to run a web service, threfore the site HAS to give me its license key every time the management area is run :-), they cant amend the code if they never get hold of it !
August 20, 200917 yr Hi, I know you have found a solution, but for next time you may get better results if you use $_SERVER["HTTP_REFERER"]. It may be that 'register_globals' are off on your server so $HTTP_REFERER will be empty. Regards
Create an account or sign in to comment