it's in XAMPP localhost.
You better specify an absolute path for cookie.
Use __DIR__ constant and your cookie file will be stored in the same folder as your PHP script. Like this. curl_setopt($ch, CURLOPT_COOKIEJAR, __DIR__.'/cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, __DIR__.'/cookie.txt');
Обсуждают сегодня