以编程方式更新cPanel中的FTP帐户配额?

问题描述:

我想通过PHP更新cPanel FTP帐户的配额。以编程方式更新cPanel中的FTP帐户配额?

https://username:[email protected]:2083/frontend/x3/ftp/[email protected]&quota=50 

我正在用上面的URL做一个HTTP请求。

我获得FTP帐户[email protected]已成功与50兆字节一个新的配额修改的响应消息

。 0无法确定FTP [email protected]目录。

但是在服务器配额中没有更新。其实什么问题?

为什么这条消息:

0Failed确定FTP [email protected]目录。

+0

你是否知道cpanel有一个庞大的API库,可以让你正确地做到这一点? http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiFtp – bizzehdee 2013-04-06 13:34:33

最后我得到了解决方案。从 'ACCT' 参数

https://username:[email protected]:2083/frontend/x3/ftp/doeditquota.html?acct=mailid&quota=50

删除域。