<? $reminder_details = "test"; $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://www.teknowan.com/gateway.asp?username=kullaniciadim&company=firmam&password=sifrem&action=0&message='.urlencode($reminder_details).'&numbers=5427376596', CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7' )); // Send the request & save response to $resp $resp = curl_exec($curl); // Close request to clear up some resources curl_close($curl);
echo $resp; ?>
Yukarıda ilettiğim şekilde denerseniz probleminiz çözülecektir, sözdizimi hatası mevcuttu, stabil çalışacak hali yukarıdaki gibidir.