Re: [PHP] PHP fileperms is not working

2003-02-18 Thread Ernest E Vogelsinger
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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP fileperms

2003-02-18 Thread Kelly Protsko
Here is how the numbers work for file permissions.

644 = rw-r--r--

0 --- no access 
1 --x execute 
2 -w- write 
3 -wx write and execute 
4 r-- read 
5 r-x read and execute 
6 rw- read and write 
7 rwx read write execute

-Original Message-
From: DIKSHA NEEL [mailto:[EMAIL PROTECTED]] 
Sent: February 18, 2003 11:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP fileperms

HI ALL,

i am getting the result as 644 when i execute the following
command.
can anyone please tell me what file permission does 644
stand for and what should i do to make my file readable?

$filename = '\bdoi_change\sundar.html';

printf(%o,(fileperms(\bdoi_change\andar.html)  0777));


regards,
diksha.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php