Jump to content

How would I?


unidox

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.