php1 Posted September 24, 2008 Share Posted September 24, 2008 exec($command,$output,$return); I got the return value as 0 or 1 But when i echo $output i got the value as array() . is there any way to output the error messages in exec() command execution Link to comment https://forums.phpfreaks.com/topic/125580-solved-how-to-output-error-messages-in-exec/ Share on other sites More sharing options...
trq Posted September 24, 2008 Share Posted September 24, 2008 print_r($output); Link to comment https://forums.phpfreaks.com/topic/125580-solved-how-to-output-error-messages-in-exec/#findComment-649273 Share on other sites More sharing options...
php1 Posted September 24, 2008 Author Share Posted September 24, 2008 thank u for ur reply. $command = $command." 2>&1"; exec($command, $output,$return); print_r($output); Link to comment https://forums.phpfreaks.com/topic/125580-solved-how-to-output-error-messages-in-exec/#findComment-649292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.