Re: Read directory; store filenames found in mySQL table?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote:

> Ave,
> 
> This is what I'm trying to do; I want to read a directory (eg: W:\Test 
> \) and take all the filenames found in the directory (eg: 1.vox,  
> 2.wav, 3.txt) and store them in  a simple mySQL table.
> 
> Can I do this?
> 
> ---
> Rahul Sitaram Johari
> Founder, Internet Architects Group, Inc.
> 
> [Email]	sleepwalker@xxxxxxxxxxxxxxxx
> [Web]	http://www.rahulsjohari.com
> 
> 
> 
> 
> 


You'll probably want to look at the readdir() function. The manual page
also has dozens of different example scripts that would be easy to tweak
for your purpose.

http://php.net/manual/en/function.readdir.php


Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux