EdgarsK Posted June 19, 2009 Report Share Posted June 19, 2009 (edited) Sveiki, ceru uz Jūsu atsaucību. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__)."/cookie.ini"); curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__)."/cookie.ini"); curl_setopt($ch, CURLOPT_HEADER,1); $curl = curl_exec($ch); curl_close ($ch); Viss curl process notiek veiksmīgi, bet COOKIEFILE netiek saglabāts, savukārt COOKIEJAR tiek saglabāts cookie.ini COOKIEJAR # Netscape HTTP Cookie File# http://curlm.haxx.se/rfc/cookie_spec.html # This file was generated by libcurl! Edit at your own risk. mans_domens.lv FALSE / FALSE 0 PHPSESSID 2cg7jkb8svhvqotbq9m7mioem2 Ja es aizkomentēju COOKIEJAR, tad cookie.ini netiek izveidots. Vai ir kāds iemesls kapēc COOKIEFILE nefunkcionē? Esmu uz win, ar chmodiem nav problēmu. Edited June 19, 2009 by EdgarsA Quote Link to comment Share on other sites More sharing options...
bubu Posted June 19, 2009 Report Share Posted June 19, 2009 Varbūt tāpēc, ka abi faili norāda uz vienu un to pašu vietu? Ar domu - vispirms pirmais saraksta savu infu, un tad otrais pārraksta visu pāri ar savu infu? Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted June 19, 2009 Author Report Share Posted June 19, 2009 bubu, pārlasi vēlreiz. Jā es aizkomentēju COOKIEJAR, tātad COOKIEJAR nepilda savu funkciju, savukārt COOKIEFILE joprojām neko nedara. Quote Link to comment Share on other sites More sharing options...
bubu Posted June 19, 2009 Report Share Posted June 19, 2009 ok, tad nezinu. setopt fjas komentāros nav nekā noderīga izlasāma? Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted June 19, 2009 Author Report Share Posted June 19, 2009 nop. jau visu nakti ka njemos.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.