fork download
  1. <?php
  2. $url = 'https://a...content-available-to-author-only...m.com/sms/1/text/query';
  3. $params = 'username=himanshuarpit&password=Arpit@007$&from=VIKVTE&to=91'.$mobile.'&text=Dear customer, your password is '.$password.'. Dont share it with anyone. - Vikvite International&indiaDltContentTemplateId=1107171039362849311&indiaDltPrincipalEntityId=1101691920000074359&indiaDltTelemarketerId=110200001997';
  4.  
  5. $ch = curl_init($url);
  6. curl_setopt( $ch, CURLOPT_POST, 1);
  7. curl_setopt( $ch, CURLOPT_POSTFIELDS, $params);
  8. curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
  9. curl_setopt( $ch, CURLOPT_HEADER, 0);
  10. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
  11.  
  12. $response = curl_exec( $ch );
  13. echo $response;
  14. ?>
  15.  
Success #stdin #stdout #stderr 0.04s 26544KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: mobile in /home/b8nmSz/prog.php on line 3
PHP Notice:  Undefined variable: password in /home/b8nmSz/prog.php on line 3