我收到以下通知,
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");
感谢。
答案 0 :(得分:1)
尝试引用密钥,如下所示:
$acct = array('username' => $username, 'password' => $password, 'domain' => $domain);