Re: PHP Linux "locate" to html script?

From: Date: Fri, 03 Sep 2004 18:44:22 +0000
Subject: Re: PHP Linux "locate" to html script?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195763@lists.php.net to get a copy of this message
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. ---------------------------------------------------

« previous php.general (#195763) next »