Page 1 of 1

move_uploaded_file() different directory

Posted: Sun Oct 31, 2010 12:06 pm
by Quazel
How can I change this code around to move a file from /sam/img/ to /info/img/?

Code: Select all

                              $destination_path = '../../info/img/';
                              $target_path = $destination_path . $tag;

                              if(@move_uploaded_file($_FILES['thumb']['tmp_name'], $target_path)) {
                                        $result = 1;
                              }

Re: move_uploaded_file() different directory

Posted: Mon Nov 01, 2010 3:56 pm
by Quazel
anyone?