S
stuayre
Guest
Hi,
im trying to write an automated setup script in php
but i can't seem to get the domain.sh or any of the other
command line tools to work in PHP.
I've tried...
but $result is always empty, it works fine from shell, how can I run these programs from within PHP?
cheers
Stu
im trying to write an automated setup script in php
but i can't seem to get the domain.sh or any of the other
command line tools to work in PHP.
I've tried...
Code:
exec('usr/local/psa/bin/./domain.sh -i mydomain.com',$result);
Code:
exec('/usr/local/psa/bin/./domain.sh -i mydomain.com',$result);
Code:
exec('../../../../usr/local/psa/bin/./domain.sh -i mydomain.com',$result);
but $result is always empty, it works fine from shell, how can I run these programs from within PHP?
cheers
Stu