Re: PHP fileperms is not working
| From: | Ernest E Vogelsinger | Date: | Tue, 18 Feb 2003 13:22:59 +0000 |
| Subject: | Re: PHP fileperms is not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135993@lists.php.net to get a copy of this message | ||
At 13:59 18.02.2003, DIKSHA NEEL said:
--------------------[snip]--------------------
>hi all,
>
>the file permission command is not working.
>any idea why?
>
>$filename = '\bdoi_change\andar.html';
>
>printf("%0",(fileperms("\bdoi_change\andar.html") & 0777));
--------------------[snip]--------------------
You need to use either forward slashes or double backslashes in file names:
Either "\\bdoi_change\\andar.html"
or "/bdoi_change/andar.html"
Both will work regardless of the operating system you are using (*nix,
windoze, or Mac)
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/