Welcome Guest, Not a member yet? Register   Sign In
Trying to put info from files into database

Does $file contain the the path or just the file name ?
Get_file_info need the path as well as the file name.
You might be better of using just the file helper.

PHP Code:
get_filenames('./images/gallery/',TRUE); //TRUE to include the path with the file name
($files as $file) {
= array( 
           'category' => 'uncategorised',
           'image_name' => $get_info['name'],
           'alt' => $get_info['name'],
           'full_path' => $get_info['server_path'],
           'image_width' => '800',
           'image_height' => '600'

But I am not sure if this will include sub-folder. you will need to do a var_dump be sure.
Have a look at the helpers documentation to see what is available.
A good decision is based on knowledge and not on numbers. - Plato


Messages In This Thread
RE: Trying to put info from files into database - by salain - 09-29-2016, 05:30 AM

Theme © iAndrew 2016 - Forum software by © MyBB