Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8735
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: php curl only saves a cookie with tempnam() |
| Date | 2013-03-19 09:06 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ki9nob$2ll$2@dont-email.me> (permalink) |
| References | (4 earlier) <5e24e972-cbfa-4c70-8f83-cc87cd3d4216@googlegroups.com> <0dfdd4d7-27e0-42eb-a753-d1ce0f54abc6@googlegroups.com> <ki5pk3$dq6$1@dont-email.me> <b7c5cb83-5ab4-43b8-ab45-f7201f4cac8b@googlegroups.com> <1a25d75a-a391-404e-9cb4-5c9dedda5486@googlegroups.com> |
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@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
php curl only saves a cookie with tempnam() doug@dougcassidy.com - 2013-03-16 11:23 -0700
Re: php curl only saves a cookie with tempnam() Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-16 18:48 -0400
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-16 23:46 -0700
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-16 23:52 -0700
Re: php curl only saves a cookie with tempnam() Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-17 10:03 -0400
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-17 09:42 -0700
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-17 10:16 -0700
Re: php curl only saves a cookie with tempnam() Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-17 21:13 -0400
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-18 11:02 -0700
Re: php curl only saves a cookie with tempnam() Doug Cassidy <doug@dougcassidy.com> - 2013-03-18 21:46 -0700
Re: php curl only saves a cookie with tempnam() Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-19 09:06 -0400
csiph-web