Reputation: 118
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
Upvotes: 2
Views: 3733
Reputation: 1597
The script works fine in my lab. Possible check the permission environment and file permission.
Upvotes: 4