How can i put variables in this array? I tried all kinds of ways... Still doesnt work.
I tried:
etc... All of them just print: $domain
PHP:
$sock->query('/CMD_EMAIL_POP',
array(
'action' => 'modify',
'domain' => 'somedomain.com',
'user' => 'usertomodify',
'passwd' => '', //no password, just doing quota
'passwd2' => '',
'quota' => 'xx'
));
I tried:
PHP:
$domain = "http://www.test.com";
$sock->query('/CMD_EMAIL_POP',
array(
'action' => 'modify',
'domain' => '$domain',
'user' => 'usertomodify',
'passwd' => '', //no password, just doing quota
'passwd2' => '',
'quota' => 'xx'
));
PHP:
$domain = "http://www.test.com";
$sock->query('/CMD_EMAIL_POP',
array(
'action' => 'modify',
'domain' => '".$domain."',
'user' => 'usertomodify',
'passwd' => '', //no password, just doing quota
'passwd2' => '',
'quota' => 'xx'
));
etc... All of them just print: $domain