unidox Posted March 30, 2008 Share Posted March 30, 2008 I have a script on Server 1, and another script on Server 2. What I want is to have lic.php on server 1 and use get to check to see if the license is valid. Like: $lic = $_GET['lic']; $url = $_SERVER["HTTP_REFERER"]; $q = mysql_query("SELECT * FROM `db` WHERE lic = '$lic'"); if (mysql_num_rows($q) == 1) { echo "1"; //lic is valid } else { echo "0"; //lic is invalid } I was just wondering how I would have server 2 use get to activate the script on server 1. Thanks Link to comment https://forums.phpfreaks.com/topic/98672-how-would-i/ Share on other sites More sharing options...
BlueSkyIS Posted March 30, 2008 Share Posted March 30, 2008 it might work with fopen(), else check out curl functions. Link to comment https://forums.phpfreaks.com/topic/98672-how-would-i/#findComment-504992 Share on other sites More sharing options...
unidox Posted March 30, 2008 Author Share Posted March 30, 2008 I did that and echo fopen does Resource id #3. Whats wrong Link to comment https://forums.phpfreaks.com/topic/98672-how-would-i/#findComment-505026 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.