OK, I have a code that uses cookies but in another part of the site is a code that works along side this code so I need to get the same cookies. I can't seem to do this though. Curl doesn't seem to like getting cookies from other sites or other parts of the site.
My cookie is in public_html/u/cook and my other script is public_html/t/script.php so what I have tried is:
curl_setopt($ch, CURLOPT_COOKIEFILE, "/u/cook");
curl_setopt($ch, CURLOPT_COOKIEFILE, "http://www.mysite.com/u/cook");
Neither of these get the cookie information. Why and how can I sort this? Thanks in advance. 🙂