Common curl
Showing
1 changed file
with
11 additions
and
7 deletions
| ... | @@ -173,14 +173,18 @@ class RecordController extends Controller { | ... | @@ -173,14 +173,18 @@ class RecordController extends Controller { |
| 173 | $query = http_build_query($inputArray); | 173 | $query = http_build_query($inputArray); |
| 174 | $url .= $query; | 174 | $url .= $query; |
| 175 | try{ | 175 | try{ |
| 176 | $ch = curl_init(); | 176 | // $ch = curl_init(); |
| 177 | curl_setopt($ch, CURLOPT_URL, $url); | 177 | // curl_setopt($ch, CURLOPT_URL, $url); |
| 178 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | 178 | // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
| 179 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 179 | // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 180 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3); | 180 | // curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3); |
| 181 | $response = curl_exec($ch); | 181 | // $response = curl_exec($ch); |
| 182 | 182 | ||
| 183 | curl_close($ch); | 183 | // curl_close($ch); |
| 184 | $smscontroller = new SmsController(); | ||
| 185 | $response=$smscontroller->smsCurl($url); | ||
| 186 | |||
| 187 | //curl_close($ch); | ||
| 184 | if($response!=''){ | 188 | if($response!=''){ |
| 185 | return "<script>simpleNotification('success','topRight','SMS Sent successfully!!');</script>"; | 189 | return "<script>simpleNotification('success','topRight','SMS Sent successfully!!');</script>"; |
| 186 | }else{ | 190 | }else{ | ... | ... |
-
Please register or sign in to post a comment