svenn Posted May 23, 2011 Share Posted May 23, 2011 Hi guys Do you guys know if possible to open an external URL without actually displaying this to the user? We have a service where we wish to open an external URL which triggers sending out an SMS to the user. However..we cannot display the url opened to the user as it shows our username etc with the sms provider. basically the url looks like this: https://www.smsprovider.com/username=OurUsername&password=******&smsMsg_to_send=blablablablabla Is it possible to "trigger" this URL without letting our users see it? Thanks in advance for any help you may provide Link to comment https://forums.phpfreaks.com/topic/237191-open-an-external-url-without-displaying-it-to-the-user/ Share on other sites More sharing options...
anupamsaha Posted May 23, 2011 Share Posted May 23, 2011 Look into cURL (http://php.net/manual/en/book.curl.php) Link to comment https://forums.phpfreaks.com/topic/237191-open-an-external-url-without-displaying-it-to-the-user/#findComment-1218958 Share on other sites More sharing options...
svenn Posted May 23, 2011 Author Share Posted May 23, 2011 Thanks alot for your quick reply will have a go at it as soon as i get back to the office Thanks! Link to comment https://forums.phpfreaks.com/topic/237191-open-an-external-url-without-displaying-it-to-the-user/#findComment-1218985 Share on other sites More sharing options...
AbraCadaver Posted May 23, 2011 Share Posted May 23, 2011 If your server support it then these are easier: $data = file_get_contents('https://www.smsprovider.com/username=OurUsername&password=******&smsMsg_to_send=blablablablabla'); //or $response = http_get('https://www.smsprovider.com/username=OurUsername&password=******&smsMsg_to_send=blablablablabla'); Link to comment https://forums.phpfreaks.com/topic/237191-open-an-external-url-without-displaying-it-to-the-user/#findComment-1219115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.