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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.