Re: How to use PHP to view the file permision???
| From: | Scott Fletcher | Date: | Mon, 08 Dec 2003 21:34:59 +0000 |
| Subject: | Re: How to use PHP to view the file permision??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172173@lists.php.net to get a copy of this message | ||
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, is_writeable() and is_readable().
Thank for the response!
Scott F.
"Marcos Thiago Merschamnn Fabis" <fabismt@neobiz.com.br> wrote in message
news:20031208183559.98231.qmail@pb1.pair.com...
> > > 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 way, I
can
> > > halt the script if there is no write permission or something.
>
> Maybe this help:
>
> http://br.php.net/manual/en/function.fileperms.php
> http://br.php.net/manual/en/ref.filesystem.php