Yep just like i said in the title. Can someone Please help me make this function im doing an experiment. For Example, Lets say the page i want to read normally says: <html> <body> Hello you are not logged in <body> </html> HTML: But with my cookie it says: <html> <body> logged in, url is <a href="http://www.google.com">this</a> </body> <html> HTML: I want to use curl or php to get file contents with my cookie, get the url http://www.google.com preg_match and then return it. Well i know how to do this using php's getfilecontents function but i cant use my cookie i think and i saw that with curl you can. Can anybody help me by making an example function please?, its realy urgent Thanks in advance to all Digitalpoint users!
You're right, cURL is going to be the key here. Namely the curl_setopt() function and the "CURLOPT_COOKIEFILE" option to point to the cookie you want to use .