php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

RuntimeException Could not load file url of the website

Open RohitM-IN opened this issue 3 years ago • 0 comments

https://flareapp.io/share/87nB6OD7

i am including the stacktrace because i dont understand why its not working in online server but its working in local host

php version (server): 8.0.3 php info link : https://www.crada.ga/test

laravel version : Laravel Framework 8.40.0

is there any extensions that are off or disabled that are required by the app ?

what i tested :

$url = "https://www.worldometers.info/coronavirus/";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$resp = curl_exec($curl);
curl_close($curl);
dd($resp);  // shows the website :) 

so no curl issue !

RohitM-IN avatar May 23 '21 21:05 RohitM-IN