With passthru I am using
Code: Select all
ob_start();
passthru("<external program here");
$xml = ob_get_contents();
ob_end_clean();
Is there another way to get around this problem?
Moderator: General Moderators
Code: Select all
ob_start();
passthru("<external program here");
$xml = ob_get_contents();
ob_end_clean();
Code: Select all
ob_start();
passthru("sudo /opt/bin/loadinfo");
$rawXml = ob_get_contents();
ob_end_clean();
var_dump($rawXml);
Code: Select all
sudo /opt/bin/loadinfo