automatic psa code --- where is the error

Hello falks

I am trying to get the automatic psa setup scripts to add a domain name via php, i get no error but nothing happens either, i know its likely syntax error.

<?php

$mstrng = shell_exec ("/setup-dir/domain.pl -c $domain -status true -dom_user true -du_passwd $password -dns false -www true -hosting true -ip default -login $username -passwd $password -traffic 1024 -log_del weekly -fp true -fpauth true -fplogin $username -fppasswd $password -ssi true -php true -cgi true -perl true -asp true -ssl false -webstat true -clogin manager -ap_reconf true");

$mstrng = ereg_replace( "Content-type: text/html", "", $mstrng );
echo $mstrng;
?>

----------------------------
i have also tried
----------------------------

<?php

$mstrng = shell_exec ("perl /setup-dir/domain.pl -c $domain -status true -dom_user true -du_passwd $password -dns false -www true -hosting true -ip default -login $username -passwd $password -traffic 1024 -log_del weekly -fp true -fpauth true -fplogin $username -fppasswd $password -ssi true -php true -cgi true -perl true -asp true -ssl false -webstat true -clogin manager -ap_reconf true");

$mstrng = ereg_replace( "Content-type: text/html", "", $mstrng );
echo $mstrng;
?>


any ideas? i dont get any errors, php is not in safe mode etc

 

 

 

 

Top