Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

multiple images store

Hello is het possible to loop through a directory and save all the images to the mySql database?
I know it's not possible from client to server without a zip file, but i want to use it local only!
0
pruymboom
Asked:
pruymboom
1 Solution
 
funamentalistCommented:
yeah well .. u can write a script which will pick up a directory with something like..


   if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
            //// save to db with query
        }
        closedir($dh);
    }


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now