File Directory --- Into Array --- Into Mysql Database Table??

This is a discussion on File Directory --- Into Array --- Into Mysql Database Table?? within the PHP General forums, part of the PHP Programming Forums category; Hello all... What I'm trying to do may or may not be relatively simple. I have a directory of ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-10-2004
Webmaster
 
Posts: n/a
Default File Directory --- Into Array --- Into Mysql Database Table??

Hello all...

What I'm trying to do may or may not be relatively simple. I have a
directory of text files online that I'd like to be able to search
using php/mysql.

The directory structure is like so...

music/eric_clapton/this_songs_name.txt

Now Ideally what I'd like to do... is parse the path/file info into an
array, like below:

Dir | Sub Dir | File Name | Type | FullPath
-------------------------------------------------------------
music | Eric Clapton | This Songs Name | .txt | FileUrl


I'll need to replace the underscores/spaces in the path for the sub
dir and file name fields (for result display purposes), and ucwords?
to make each word in these fields begin with an uppercase letter...

Is there any way of going about this that would make it easier to
import the results into a mysql table?

I hope this makes sense.

Thanks in advance...

Don Bedford.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0