Welcome Guest, Not a member yet? Register   Sign In
curl_setopt($ch, CURLOPT_COOKIEFILE, ) - doesn't write cookie. relative path? or write file permission problem? (CI newb
#1

[eluser]faluci[/eluser]
Please help this CI newbie.

The following code write cookie, but it doesn't in CI project (code is in a controller - list_abc)

controllers/abc(directory)/list_abc(controller name)/1(params)

Code:
curl_setopt($ch, CURLOPT_COOKIEJAR, '/list.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/list.txt');

I was expecting the above code will write cookie in the directory... (not sure if '/list.txt' points to relative the index.php - CI newbie)

controllers/abc(directory)/list.txt

In fact, list.txt is not written anywhere in my project. Is this related to 'Write File' permission? Or something else? How can I solve this please?
#2

[eluser]InsiteFX[/eluser]
See this

php net - CURL




Theme © iAndrew 2016 - Forum software by © MyBB