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 #180799 is a reply to message #180792] Tue, 19 March 2013 13:06 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/19/2013 12:46 AM, Doug Cassidy wrote:
> 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.
>

Yes, it does. I didn't think about it being an empty file, either.

Glad you figured it out.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Fri Nov 22 15:46:11 GMT 2024

Total time taken to generate the page: 0.03959 seconds