I have a PHP CURL script that refuses to work
- or -
Post a project like this67
£20(approx. $25)
- Posted:
- Proposals: 10
- Remote
- #4148897
- Awarded
PPH's TOP Notch Website & Mobile App Developer & Designer(9+ yrs) ✔ Wordpress ✔ Shopify ✔ OpenCart ✔ Laravel ✔ PHP ✔ React Native ✔ Android ✔ iOS ✔ HTML/CSS✔Javascript/jQuery✔Responsive Design✔ASP.net
Lahore
Graphic Designer |Experienced Web Designer | Video/Audio Editor | PowerPoint/Keynote | Content Writer |
San Jose
5182305598362724255308468334314163544992429648197604631074838410889716
Description
Experience Level: Entry
PHP & CURL work everywhere on the site but not in this new script.
I've even created a standalone script and it still fails.
The script is here and is self explanatory: It just want to retrieve the page content from a URL.
I guess I've done something daft...
$25 / £20 to the first person to fix this!
Here's the script:
<?php
$thisLink = 'https://www.zandax.com';
$url = $thisLink;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 50);
curl_setopt($curl, CURLOPT_TIMEOUT, 50);
$output = curl_exec($curl);
echo 'OUTPUT: ' . $output ;
I've even created a standalone script and it still fails.
The script is here and is self explanatory: It just want to retrieve the page content from a URL.
I guess I've done something daft...
$25 / £20 to the first person to fix this!
Here's the script:
<?php
$thisLink = 'https://www.zandax.com';
$url = $thisLink;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 50);
curl_setopt($curl, CURLOPT_TIMEOUT, 50);
$output = curl_exec($curl);
echo 'OUTPUT: ' . $output ;
ZandaX
100% (28)Projects Completed
22
Freelancers worked with
20
Projects awarded
34%
Last project
24 Jan 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies