FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php curl only saves a cookie with tempnam()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php curl only saves a cookie with tempnam() [message #180792 is a reply to message #180778] Tue, 19 March 2013 04:46 Go to previous messageGo to previous message
doug[1] is currently offline  doug[1]
Messages: 10
Registered: March 2013
Karma:
Junior Member
Figured it out. tempnam() creates the file whether you use it or not. My curl to bitly wasnt giving me back a cookie, at least not all the time. So, when i was setting
$tmpfile = tempnam($tempdir, 'CURL_tmpfile');
it created the random named file.
then when i set
$tmpfile = $tempdir.'/CURL_var_.txt';
no cookie was created because bitly didnt send me one. I was not realizing that the tempnam() file was just an empty file created and then never used.

Gahhhh!
Thanks for the help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: all done
Next Topic: validation of a text box input...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 14 17:22:23 GMT 2024

Total time taken to generate the page: 0.04411 seconds