I want to execute several commands by PHP,
//DISPLAY setting
$command1 = 'export DISPLAY=:1';
$last_line1 = system($command , $rtn);
//use Xvfb
$command2 = 'Xvfb :1 -screen 0 '.$width.'x'.$height.'x24 &';
$last_line2 = system($command , $rtn);
//open firefox
$command3 = 'firefox -display :1 -width '.$width.' -height '.$height.' -P "webshot" &';
$last_line3 = system($command , $rtn);
//open URL
$command4 = 'firefox -display :1 -remote "openurl('http://www.google.com')" &';
$last_line4 = system($command , $rtn);
command3 occurs some errors ,but they can ignore. I want to continue to execute command4,but command3 occurs some errors,so it cannot be executed.
How to resolve this problem?