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
Share on other sites

I understand that English may not be your first language, but this is an English speaking board and your going to need to make a better attempt at getting your point across. Your post makes little to no sense.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.