Reply to Re: FTP Chmod problem

Your name:

Reply:


Posted by "Matt Palermo" on 09/05/05 23:27

It doesn't make sense to me that the function would work fine on a file and
not work on a directory. Moreover, why would the ftp_site chmod command
produce a working result and not the ftp_chmod? This seems strange to me.

-Matt




"Raj Shekhar" <rajlist@rajshekhar.net> wrote in message
news:87vf1g9q4k.fsf@stormcrow.rajshekhar.net...
> "Matt Palermo" <mpalermo@vt.edu> writes:
>
>
>> ftp_chmod($connId, 0777, $folder);
>>
>> The function almost works, but when I check the permission of the folder
>> after it's run, the folder has 410 for permissions instead of 777. So,
>> it
>> is changing the permissions, but not to the correct value. Now when I
>> use
>> the following code, it seems to work fine:
>>
>> $chmodCmd = "CHMOD 0777 ".$file;
>> ftp_site($connId, $chmodCmd);
>>
>> This properly changes the folder permissions to 777. Does anyone know
>> why
>> the ftp_chmod() function doesn't work correctly? As a side note, the
>> ftp_chmod() function works correctly on a file, but not a directory. Any
>> help is appreciated.
>
> Some ftp server (like vsftpd) can be configure to change the mode of all
> uploaded files . There is a possibility that your server is configure
> to chmod your files (in vsftpd it is controlled by the file_open_mode
> option in the config file)
>
> --
> Raj Shekhar
> blog : http://rajshekhar.net/blog home : http://rajshekhar.net
> Disclaimer : http://rajshekhar.net/disclaimer

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация