Re: PHP Linux "locate" to html script?
| From: | John Nichel | Date: | Fri, 03 Sep 2004 20:27:14 +0000 |
| Subject: | Re: PHP Linux "locate" to html script? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195777@lists.php.net to get a copy of this message | ||
BOOT wrote:
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>"; ?>$output = array(); exec ( "locate whatever" $output ); And loop thru the $output array. It's all in the manual.... http://us4.php.net/manual/en/function.exec.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com