Welcome Guest, Not a member yet? Register   Sign In
Problem in copying image file to one directory to another
#1

[eluser]Rahul gamit[/eluser]
I am using copy function of php to copy file,and its working fine when i am copying to particular drive,but the problem is i am copying the image file to zip folder and allowing that zip folder to download.

The file gets copied,but the file is having size 0kb.
so what is the problem.?
can any one help me ??

this is my code
Code:
foreach(get_filenames('C:/wamp/www/CodeIgniter/system/application/views/upload/images') as $image_name)
{        copy('C:/wamp/www/CodeIgniter/system/application/views/upload/images/'.$image_name,$this->zip->add_data('content/CodeIgniter/system/application/views/upload/images/'.$image_name));        
}
    $this->zip->download('my_site.zip');




Theme © iAndrew 2016 - Forum software by © MyBB