I am sorry for my English. I use Google translate.
I have a question for php. Namely work with CURL.
When you try to bring COOKIE error:
Warning: Cookie names can not contain any of the following '= ,; \ t \ r \ n \ 013 \ 014 'in /var/www/test2.lo/app/mvc/controllers/index.php on line 62
My code:
curl_setopt ($curl, CURLOPT_COOKIE, $cookies);
Deciding to check that the variable I did the following:
var_dump ($cookies);
I was surprised. but I received a string (37) "user_id = 61294582; sid = 6079823296354752"
What kind of mistake? How to fix it?
var_dump ($ cookies);
theres a space between$
andcookies
– Sayed Aug 4 '15 at 20:42$_COOKIE
– user557846 Aug 4 '15 at 20:52