I'm trying to read information from the command line via exec();
function ex($cmd){
@exec($cmd,$exec,$status);
if($status == 0){
return $exec;
}
return "";
}
I'm trying to parse the output "line by line" but the problem is that the output lines are splitted (just as if the terminal window is "too small"). For parsing it would be pretty helpful if there is no "line length limit" for the output and one line keeps one line no matter what size it is.
How can I archive that?