Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
515d9af8
authored
2019-04-08 11:54:32 +0530
by
G Manojkumar
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Common curl
1 parent
93fe7796
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
application/app/Http/Controllers/RecordController.php
application/app/Http/Controllers/RecordController.php
View file @
515d9af
...
...
@@ -173,14 +173,18 @@ class RecordController extends Controller {
$query
=
http_build_query
(
$inputArray
);
$url
.=
$query
;
try
{
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$ch
,
CURLOPT_CONNECTTIMEOUT
,
3
);
$response
=
curl_exec
(
$ch
);
curl_close
(
$ch
);
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3);
// $response = curl_exec($ch);
// curl_close($ch);
$smscontroller
=
new
SmsController
();
$response
=
$smscontroller
->
smsCurl
(
$url
);
//curl_close($ch);
if
(
$response
!=
''
){
return
"<script>simpleNotification('success','topRight','SMS Sent successfully!!');</script>"
;
}
else
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment