2012-04-12 84 views

回答

2

我不知道你的意思與「執行」一個URL,如果你只是想打電話給它,你可以使用AJAX,打開一個彈出或者只是做這樣的事情(很醜陋的方法)什麼:

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

編輯:

一個使用AJAX的例子是在這裏:

Get result from php file without usig jquery

0

你可以嘗試這種方式使用捲曲

<?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); 
?> 
+0

感謝üsh4nx0r – 2012-04-12 16:06:22

+0

做我需要包括這方面的任何圖書館嗎? – 2012-04-12 16:10:32

+0

這不需要庫。默認情況下,cURL在PHP上啓用。 – 2012-04-12 16:44:51

相關問題