DGT
DGT

Reputation: 2654

PHP shell command

Can anyone please tell me how to move file(s) into a dir in PHP? I did the following and it doesn't work.

exec("temp/$file ../public/");

Upvotes: 1

Views: 278

Answers (2)

PTBNL
PTBNL

Reputation: 6130

You might want to try using the PHP functions copy and then unlink.

Upvotes: 0

Related Questions