i use the following code to move image one folder to another folder but it does not work.
as follows
if(file_exists('admin/passenger_photo/p1.jpg'))
{
rename('admin/passenger_photo/p1.jpg' , 'admin/driver_photo/p1.jpg');
echo "success";
}
but yet it does not work. thanks & regards