File Path into variables
| From: | Jeremy | Date: | Sun, 15 Oct 2000 22:39:52 +0000 |
| Subject: | File Path into variables | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3621@lists.php.net to get a copy of this message | ||
I am wondering how to turn a file path into variables that can be stored in a database. I need to
get variable for multiple files. An example file is
/l/led_zeppelin/stairway_to_heaven.txt
I want to make
/$letter/$artist/$song
and put the song txt or html file into a Blob field.
My database would look like this :
id,letter,artist,song,lyrics
Does anybody know how to do this? I know how to open, copy, and rename files, but am unclear on how
to turn file paths into variables, or do mass additions
Any help would be appreciated.
Thanks,
Jeremy Ferwerda