Forum Moderators: coopster
For example if I do a whois query I get the full output with returns so it is all dumped on 1 line...
My Questions:
1. Is there a way to make the outputted data appear the same as if I had performed the same query using SSH?
2. Is there a way to make data from a traceroute appear line by line instead of waiting for the query to execute completly before dumping the data? I am assuming it can be done with Java but I am not sure.
Thanks in advance.
using pre tags around the returned info
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
2. I don't believe you can get the line by line as it doesn't return control to php until it is completed