cpanel xml-api php通知

时间:2012-05-20 15:41:51

标签: php cpanel

我收到以下通知,

Notice: Use of undefined constant username - assumed 'username'

........

以及生成它的代码,

$acct = array(username => $username, password => $password, domain => $domain);

Ami在这里做错了。原始代码有这样的东西,

$acct = array( username => "someuser", password => "pass123", domain => "thisdomain.com");

感谢。

1 个答案:

答案 0 :(得分:1)

尝试引用密钥,如下所示:

$acct = array('username' => $username, 'password' => $password, 'domain' => $domain);