简体   繁体   English

cpanel xml-api php通知

[英]cpanel xml-api php notice

I'm getting the following notice, 我收到以下通知,

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

........

and the code that generates it, 以及生成它的代码,

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

Ami doing something wrong here. 阿美在这里做错了。 the original code had something like this, 原始代码有这样的东西,

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

Thanks. 谢谢。

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM