Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Trouble Getting File Name Values

    Hello everyone, this is my first post so I just wanted to introduce myself. My name is Philip and I am a web dev. student in Ontario, Canada.

    Here is my problem I have a folder with 2500 image files. I need to get all of the file names into a MySQL database.

    Writing them in manually is not an option!

    Any suggestions?

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Use a scripting language (Perl, PHP, etc.) to iterate over all the files in the directory and insert them into your table.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •