Hi
Ive just installed Apache2 and php 5.15
Im tyring to execure a command from php but im just getting a blank page:
Is there somehting missing in my php config? its really doing my head in!Code:<?php
echo exec('hostname')
?>
Nino
Printable View
Hi
Ive just installed Apache2 and php 5.15
Im tyring to execure a command from php but im just getting a blank page:
Is there somehting missing in my php config? its really doing my head in!Code:<?php
echo exec('hostname')
?>
Nino
Have you checked out the manual
http://uk.php.net/manual/en/function.exec.php
You might need to change some of the setting in the php.ini file. Is it your server or a webhost?
You may missed the ; at the end of the line.
<?php
echo exec('hostname'); // ; may missed
?>