RE: chmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



0777 works fine on Windows 2000 and XP, if the user has the rights to
modify the directory.

- Frank

> There is a note in the manual;
> 
> http://us2.php.net/manual/en/function.chmod.php
> 
> Where someone detected that only 775 and 666 worked, another concluded
that
> a few additional values are valid on windows platforms (777 was not one
of
> them).
> 
> Warren Vail
> warren@vailtech.net
> 
> 
> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl]
> Sent: Friday, January 02, 2004 7:17 AM
> To: 'Bobo Wieland '; 'php-windows@lists.php.net '
> Subject: RE:  chmod
> 
> 
> This seams to be an access problem in the file system.
> 
> Check if the user Id the process executes under actually have
> the proper rights in the filesystem, e.g.  write (or modify)
> permission on all the directories in
> /home/p/plantsko/www/administration/data/.
> 
> If you are running under some flavour of unix you must also ensure
> that the process have execution right (--x) on all directories
> in the path in order to access the file.
> 
> If you are running under win32 platfrpom (e.g. NT with NTFS)
> then sort of the same holds true - I think. But who knows
> for sure with Bill... ;)
> 
> Additional question:
> 
> * how are you executing this? Via the webserver(?),
>   and if so, what kind of webserver are you using?
> 
> 
> -----Original Message-----
> From: Bobo Wieland
> To: php-windows@lists.php.net
> Sent: 2004-01-02 11:39
> Subject:  chmod
> 
> I'm trying to set write permission for a folder to be able to write
> images...
> 
> chmod("./../img/sort",0777) just causing a warning:
> 
> Warning: chmod(): Operation not permitted in
> /home/p/plantsko/www/administration/data/imglib.php on line 11
> 
> 
> Anyone know what might cause this warning?
> 
> I've tried chmod("/home/p/plantsko/www/img/sort",0777) which causes the
> same warning...
> 
> 
> 
> .bobo
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux