Googled to death, almost gave up.....
This works
Code:
$result3 = $da->query("CMD_API_DOMAIN", array("action" => "php_selector", "domain" => "usr0364.htm5.howtomoodle.com", "ubandwidth" => "unlimited", "uquota" => "unlimited", "php1_select" => "2", "php2_select" => "1", "ssl" => "ON", "php" => "ON", ), "POST");Found the "php_selector" as the action type on the web interface so thought it would be worth a try , running this resulted in
Array
(
[error] => 0
[text] => PHP versions saved
[details] =>
[#60;a_href] =>
[#61;] =>
[#34;CMD] =>
[#95;ADDITIONAL] =>
[#95;DOMAINS] =>
[#63;action] =>
[#61;view] =>
[#38;domain] =>
[#61;usr] =>
[#48;] =>
[#51;] =>
[#54;] =>
[#52;_htm] =>
[#53;_howtomoodle_com] =>
[#34;] =>
[#62;Back] =>
[#60;/a] =>
[#62;] =>
)
This doesn't look a very friendly output but it does switch the versions as a need it to.
Maybe this post will save someone trial and error time in the future.
Thanks
Paul
DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال میکنید
برچسب: نویسنده: ایمان اصلاحی بازدید: 290 تاريخ: شنبه 7 بهمن 1396 ساعت: 13:22