Re: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Jason Wong
On Tuesday 09 December 2003 02:19, Scott Fletcher wrote: Looked up on the manual about the chmod() function for PHP, nice but it wouldn't work if the ownership file permission is set, so that bring up a question. How do I view the file permission or folder permission to see if it have

Re: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Marcos Thiago Merschamnn Fabis
Looked up on the manual about the chmod() function for PHP, nice but it wouldn't work if the ownership file permission is set, so that bring up a question. How do I view the file permission or folder permission to see if it have the neccessnary permission before proceeding. That

Re: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Scott Fletcher
Um, not sure what this meant with the fileperms() function. I have file permission as -rw-r--r-- or 644 and when using hte fileperms() funciton, it spitted a result as 33188. If you know what it is then I'm all ear! Don't know what the hell is 33188 stand for, so will stick to easier functions,

RE: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Roger B.A. Klorese
Um, not sure what this meant with the fileperms() function. I have file permission as -rw-r--r-- or 644 and when using hte fileperms() funciton, it spitted a result as 33188. If you know what it is then I'm all ear! 33188 (base 10) == 0x100644 (base 8). -- PHP General Mailing List

Re: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Scott Fletcher
What's the function for converting it to base 8 ??? Thanks Roger B.A. Klorese [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Um, not sure what this meant with the fileperms() function. I have file permission as -rw-r--r-- or 644 and when using hte fileperms() funciton,

Re: [PHP] How to use PHP to view the file permision???

2003-12-08 Thread Scott Fletcher
Alright found it. it is base_convert, just use ... --snip-- echo base_convert($filename,8,10); --snip-- Cheer! Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's the function for converting it to base 8 ??? Thanks Roger B.A. Klorese [EMAIL PROTECTED]