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 #180774 is a reply to message #180773] Mon, 18 March 2013 01:13 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/17/2013 1:16 PM, Doug Cassidy wrote:
> actually, the temp dir is different on Win. I changed to
> $tempdir = sys_get_temp_dir();
> if(!isset($tmpfile) || ($tmpfile == '')) $tmpfile = tempnam($tempdir, 'CURL_tmpfile');
> $tmpfile = $tempdir.'/CURL_var_.txt';
>
> same results, Win local and Linux live
>

Then what you're saying is the interpreter is broken. It is not setting
$tmpfile to the new value; rather it is keeping the old value.

In your code, if $tmpfile were actually being to the new value, there is
no way curl_opt() could get the old value.

What happens if you echo $tmpfile before and after the statement:

$tmpfile = $tempdir.'/CURL_var_.txt';

--
==================
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: Thu Nov 14 17:25:45 GMT 2024

Total time taken to generate the page: 0.06695 seconds