fork download
  1. <?php
  2.  
  3. $username = "254704305092"
  4. $password = "hhhh"
  5. try {
  6. $xml_request = '
  7. <SMS>
  8. <authentication>
  9. <username>Sportpes</username>
  10. <password>qNE2Eh6q</password>
  11. </authentication>
  12. <message>
  13. <sender>Uwazii</sender>
  14. <text>You have been registered on sportpesacaretips.com. Username: ' . $username . ' and Password: ' . $password . '</text>
  15. <recipients>
  16. <gsm>' . $username . '</gsm>
  17. </recipients>
  18. </message>
  19. </SMS>
  20. ';
  21. $url = 'http://54.247.191.102/api/v3/sendsms/xml';
  22. $ch = curl_init();
  23. curl_setopt($ch, CURLOPT_URL, $url);
  24. curl_setopt($ch, CURLOPT_POST, true);
  25. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml;Accept: */*'));
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  27. curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_request);
  28. $result = curl_exec($ch);
  29. curl_close($ch);
  30. } catch(Exception $e) {
  31. echo('Message: ' .$e->getMessage());
  32. }
Runtime error #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '$password' (T_VARIABLE) in /home/NsWsua/prog.php on line 4