Fastest Web Hosting

copy of a file in php

0 votes
asked May 21, 2016 in PHP by rajatinsa (3,350 points)

i uploaded a user photo and i want to copy of that photo to one another location. how i can this?

1 Answer

0 votes
answered Jul 27, 2016 by anonymous

mkdir(dirname($dstfile), 0777, true);
copy($srcfile, $dstfile);

Job Board

TechnicalSharp is a technical community of developers where they are sharing their knowledge and solutions and against it they are getting the score point which help them to make profile strong which is under eyes on MNC's