I want to use ClientUrl function with an option as
$option["CURLOPT_TIMEOUT"] = 5;
$result = ClientUrl($url,"","GET",$option);
Here I got an error as
…\src\phpfn.php(4956): curl_setopt(): Argument #2 ($option) must be of type int, string given
I want to use ClientUrl function with an option as
$option["CURLOPT_TIMEOUT"] = 5;
$result = ClientUrl($url,"","GET",$option);
Here I got an error as
…\src\phpfn.php(4956): curl_setopt(): Argument #2 ($option) must be of type int, string given
The error means that you should use the constant CURLOPT_TIMEOUT, not as string “CURLOPT_TIMEOUT”.