简体   繁体   中英

open a foreign URL & then continue with my own webpages

http://bulksms.poweredsms.com/send.php?usr=rajdeeps&pwd=pass123&ph=xxxxxxxxxxx&sndr=textid&text=hi

I need to open this url, but there is no way I can redirect back to my own website from this link, is there any way to execute this link & den carry on with other webpages I want...??

You can use CURL for this.

http://en.wikipedia.org/wiki/CURL

I don't know what you mean with "executing" a url, if you just want to call it, you can use AJAX, open an popup or just do something like this (very ugly method):

<img src="url....." style="display: none;">

Edit:

One example of using AJAX is here:

Get result from php file without usig jquery

You could try this way using cURL

<?php

$ch = curl_init("http://bulksms.poweredsms.com/send.php?usr=rajdeeps&pwd=pass123&ph=xxxxxxxxxxx&sndr=textid&text=hi");
curl_setopt($ch, CURLOPT_URL, $ch);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
curl_exec($ch);
curl_close($ch);
?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM