Re: PHP Linux "locate" to html script?

From: Date: Fri, 03 Sep 2004 19:21:56 +0000
Subject: Re: PHP Linux "locate" to html script?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195770@lists.php.net to get a copy of this message
Thanks for all the replies. Regarding security, I use a script to ensure (hopefully LOL) that only requests from inside our network are accepted.... both hostnames and IP's are checked. I did find lonewolf's reply most usefull, but now I need to come up with way to make each result (a href...) and add some breaks: <?php $items = passthru('locate whatever'); echo "<html><body><P>"; echo $items; echo "</P></body></html>"; ?> "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B0352294D@nemesis... [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");

« previous php.general (#195770) next »