You are here: Re: Help - make PHP pull a File List (dir/ls/etc) in a specific directory - print results « PHP SQL « IT news, forums, messages
Re: Help - make PHP pull a File List (dir/ls/etc) in a specific directory - print results

Posted by samudasu on 02/26/06 07:16

If you just want a quick dirty listing and your server allows you to
use program execution functions, i.e. you're not restricted by openbase
dir, safe mode, etc. Otherwise i'd suggest using php's directory
functions as mentioned before.

$result = shell_exec('ls /usr/bin');
print "<pre>$result</pre>";

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация