Jump to content

[SOLVED] Move a uploaded picture problem?


lokie538

Recommended Posts

Hi,

 

Ive been reading up on how to move a file through php coding. On some sites it says you can use the rename function or the copy + delete functions. I couldnt get either of these too work tho. Sorry about being a noob guys.

 

I couldnt get this too work:

 <?php $file = fopen("Gallery\Large\3.jpg", "r");
$newfile = "Gallery\3.jpg";
copy($file, $newfile); ?>

 

Any ideas why this wont work? or a code that would work?

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/139011-solved-move-a-uploaded-picture-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.