[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?