Hello there,
I need to create linux bash script to listen to port eg. 12111 read user request verify it then reply one line of data.
the user will send this: userid|mobile_imei|symbid
then sould take userid and search in database
Code:
$sql = mysql_query(“select * from users where u_id=userid”);
if(mysql_numrows($sql) == 1){
//if the user is in database then
//grab data from table
$row = mysql_fetach_array($sql);
reply with the following
{1}{$row[mobile_activation_numb…