According to the manual, exec() "does not output anything. It simply returns the last line from the result of the command." The OP wants to display the output of 'locate' to the browser, so he should use passthru(), which displays all raw output.

Jay Blanchard wrote:
[snip]
Does anyone have a script that can be used to call linux's locate
command
and display the results in a browser?

I don't think it would be that hard and will make an effort today...
[/snip]

exec("locate foo");

-- Regards, Ben Ramsey http://benramsey.com

---------------------------------------------------
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---------------------------------------------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to