Jump to content

PhP athentaction


Mastershake

Recommended Posts

Ok, this is the problem im trying to make a php script kinda like a login script so i have a dll that connects to my website  blabla.com\rconid.php thats not the realwebsite but it connects to get the code "Valid." to run and i have it pull hwid and want to switch it to a sql server so the fieald are Username  version  hwid          so i want to make it so it can connect to my webpage like

blabla.com\rconid.php?hwid=234325&Username=Mastershake    and if that info is correct i want it to reply back with a simple text witch is "Valid."

Link to comment
https://forums.phpfreaks.com/topic/200525-php-athentaction/
Share on other sites

You want blabla.com to be a service which other websites query to validate/fetch certain data?

 

Client:

$hwid = 234325;
$username= 'Mastershake';
$response = file_get_contents('http://www.blabla.com/find.php?' . http_build_query(array('hwid' => $hwid, 'username' => $username));

 

Server:

$hwid = $_GET['hwid'];
$username = $_GET['username'];
//query database
if (false !== $result && mysql_num_rows($result)) {
  echo 'Valid';
  exit(0);
}
echo 'Invalid';

 

This is very basic and you may want to look into RESTful and SOAP

Link to comment
https://forums.phpfreaks.com/topic/200525-php-athentaction/#findComment-1052254
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.