tags:

views:

32

answers:

2
+1  Q: 

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/");

I would appreciate it.

+1  A: 

You should go about something like this :)

Sarfraz
Thank you, Sarfraz.
DGT
A: 

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

PTBNL