How to use FtpChmode Method?

  • Автор темы Автор темы Zennode
  • Дата начала Дата начала

Zennode

Новичок
Регистрация
22.08.2016
Сообщения
17
Реакции
2
Баллы
3
Hi,


I want to edit .htaccess file ( to READ ONLY)

ftpzenno.jpg


I get this Error Message

errorftp.jpg


Can you please help?

I already read

https://help.zennolab.com/en/v4/zen...oLab.CommandCenter.ZennoPoster~FtpChmode.html

but I guess I did not really understand ;)

Thank You!
 
Hi,


I want to edit .htaccess file ( to READ ONLY)

ftpzenno.jpg


I get this Error Message

errorftp.jpg


Can you please help?

I already read

https://help.zennolab.com/en/v4/zen...oLab.CommandCenter.ZennoPoster~FtpChmode.html

but I guess I did not really understand ;-)

Thank You!
Код:
Развернуть Свернуть Копировать
ZennoPoster.FtpChmode(project.Variables["IP"].Value, 21, "FTP", project.Variables["login"].Value, project.Variables["password"].Value, project.Variables["proxy"].Value, project.Variables["ftppath1"].Value, "666");

In variable IP only write IP. without FTP, Login your login, pass your pass, proxy you may write may not, and the path to directory of you FTP in ftppath1


If in your code, delete ftp://
Something like this.

But not sure by your code, by my code with my variables it work for sure.

Код:
Развернуть Свернуть Копировать
ZennoPoster.FtpChmode(149.202.197.10, 21, "FTP", project.Variables["login"].Value, project.Variables["pw"].Value, "", "@httpdocs/.htaccess", "644");
 
Последнее редактирование:
Thank you for you answer. Now I tried without FTP and then there is following Problem:

error_new.jpg
 
Thank you for you answer. Now I tried without FTP and then there is following Problem:

error_new.jpg
ZennoPoster.FtpChmode(project.Variables["IP"].Value, 21, "FTP", project.Variables["login"].Value, project.Variables["password"].Value, project.Variables["proxy"].Value, project.Variables["ftppath1"].Value, "666");

Try by this way, it works 100 procent.
 
Thank you very much, i tried your suggestion but now i have another error.
Should I use an "FTP CONNECTION" from the Toolbar? Or only the set-up as in image above?

Here is the new error

ertzu.jpg
 
  • Спасибо
Реакции: Zennode
Thank you very much, qzen4i. Now it works!
Just added you in skype...
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)