Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread ma...@behnke.biz
tamouse mailing lists tamouse.li...@gmail.com hat am 19. April 2012 um 07:10 geschrieben: On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);/* make the directory */ Try using mkdir($d, 0777, true); Herein, my friends, lies the

Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 9:03 AM, ma...@behnke.biz ma...@behnke.biz wrote: tamouse mailing lists tamouse.li...@gmail.com hat am 19. April 2012 um 07:10 geschrieben: On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);                /* make the

Re: [PHP] tempnam() not working as expected...

2012-04-18 Thread tamouse mailing lists
On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);                /* make the directory */ Try using mkdir($d, 0777, true); Herein, my friends, lies the problem. Silly me, using a DECIMAL number (777) instead of an OCTAL number (0777). -- PHP General

Re: [PHP] tempnam() not working as expected...

2012-04-16 Thread ma...@behnke.biz
tamouse mailing lists tamouse.li...@gmail.com hat am 14. April 2012 um 00:05 geschrieben: Can someone explain the following to me: ?php $d=tempnam(.,dir); /* create a temp named file * unlink($d); /* unlink it because we're going to make it a

[PHP] tempnam() not working as expected...

2012-04-13 Thread tamouse mailing lists
Can someone explain the following to me: ?php $d=tempnam(.,dir); /* create a temp named file */ unlink($d); /* unlink it because we're going to make it a directory */ mkdir($d,777,true); /* make the directory */ echo $d is . (is_dir($d)?'':'NOT'). a

Re: [PHP] tempnam() not working as expected...

2012-04-13 Thread Matijn Woudt
On Sat, Apr 14, 2012 at 12:05 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: Can someone explain the following to me: ?php $d=tempnam(.,dir);          /* create a temp named file */ unlink($d);                     /* unlink it because we're going to make it a directory */

[PHP] Tempnam not working??

2004-10-17 Thread Brent Clements
Hi Everybody, I'm running php 4.3.2 When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME I'm running under RHEL 3 U3 Anybody know what's going on? thanks, Brent

Re: [PHP] Tempnam not working??

2004-10-17 Thread Mark Charette
- Original Message - From: Brent Clements [EMAIL PROTECTED] When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME -- From the manual: Creates a file with a unique filename in the specified

Re: [PHP] Tempnam not working??

2004-10-17 Thread John Holmes
Brent Clements wrote: Hi Everybody, I'm running php 4.3.2 When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME I'm running under RHEL 3 U3 Anybody know what's going on? If 'mytmp' does not exist (relative to your