Mastershake Posted May 3, 2010 Share Posted May 3, 2010 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 More sharing options...
trq Posted May 3, 2010 Share Posted May 3, 2010 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 https://forums.phpfreaks.com/topic/200525-php-athentaction/#findComment-1052243 Share on other sites More sharing options...
ignace Posted May 3, 2010 Share Posted May 3, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.