Jump to content

navachaitanya

New Members
  • Posts

    6
  • Joined

  • Last visited

navachaitanya's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi everyone I need help in opencart sms integration, I have php sms gateway API, I want send notification to user when any new user get created account please anyone tell me in which file i need to integrate SMS API for new account notification and here is my PHP SMS API script <?php $sender_id=’abc’; // sender id $mob_no = ’123,456'; //123, 456 being recepients number $pwd=’xxxx’; //your account password $msg=hi%20everyone’; //your message $str = trim(str_replace(‘ ‘, ‘%20', $msg)); // to replace the space in message with ‘%20’ $url="http://login.smsgatewayhub.com/smsapi/pushsms.aspx?user='.$user.’&pwd='.$pwd.'&to=’.$mob_no.’&sid=’.$sender_id.’&msg=’.$str.’&fl=0&gwid=2'; // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL,$url); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?>
  2. benanamen Thing is I want hide the whole output,and output should not visible to user what ever the output was coming after submitting like below(its just a example) 919988776699-225d3e2c0d90404bb63dd39ae11e588c it should be hided from,user will get sms in their mobile thats it so thats y i asked for help,I tried in lot of ways but its not working
  3. Hi here i am posting my index page and sms.php page code Index.php page code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="sms.php" method="get"> <input name="Number" type="text" size="12" maxlength="12" /> <input name="Submit" type="submit" value="submit" /> </form> </body> </html> and sms.php code <?php $sender_id='abcd'; // sender id $mob_no = $_REQUEST["Number"]; //123, 456 being recepients number $user = 'username'; $pwd='password'; //your account password $sms ='Hi! You have successfully received message.' Thank You.'; $msg = $sms ; $str = trim(str_replace(' ', '%20', $msg)); // to replace the space in message with ‘%20’ $url="http://login.smsgatewayhub.com/smsapi/pushsms.aspx?user=".$user.'&pwd='.$pwd.'&to='.$mob_no.'&sid='.$sender_id.'&msg='.$str.'&fl=0'; // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HEADER,FALSE); // grab URL and pass it to the browser $response = curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); $response; ?> here when in enter mobile number and click on submit I will get response on next page is below 919988776699-225d3e2c0d90404bb63dd39ae11e588c if i enter any other number mobile number and unique id will be changed i want to hide the the response after i click submit,user end it should not be visible here you can see the code below i have taken this code with inspect element the response code directly appending to body tag <html><head></head><body>919988776699-9a4b465119754dbf976fdd9929719af4 </body></html>
  4. Hi benanamen this value "919988776699-225d3e2c0d90404bb63dd39ae11e588c"; will changes its not static value in opencart when ever customer orders customer will get sms notification on their mobile number
  5. Hi All I have integrated SMS API in PHP page i am getting some issue like,after submitting the sms I am getting response code which is sample below "919988776699-225d3e2c0d90404bb63dd39ae11e588c" Mobile number along with unique code I want to hide that code,as I am integrating this sms api in opencart page Please any one help me to resolve this issue to hide the response code and please find the my code below <?php $sender_id='abcd'; // sender id $mob_no = "919988776699";//$customer_info['telephone']; //123, 456 being recepients number $user = 'username'; //your account username $pwd='password'; //your account password $sms ='Congrats! You have successfully made order Thank You.'; $msg = $sms ; $str = trim(str_replace(' ', '%20', $msg)); // to replace the space in message with ‘%20’ $url="http://login.smsgatewayhub.com/smsapi/pushsms.aspx?user=".$user.'&pwd='.$pwd.'&to='.$mob_no.'&sid='.$sender_id.'&msg='.$str.'&fl=0'; // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HEADER,0); // grab URL and pass it to the browser //$curl_scraped_page = curl_exec($ch); curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?> Please find the screenshot that this response ID was appending in body tag
×
×
  • 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.