I had this working a month ago, now when I try it it no longer works. Can anyone please tell me wtf I'm doing wrong here? This is exactly the same method I was using for months: Three files. index.php, second.php and links.txt. Index.php: Second.php: Links.txt: Everytime I go to index.php it fires me off to Google which is the site I set to go to if the ref isn't blanked. Tried this on two different servers. Anyone?