move_uploaded_file() different directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Quazel
Forum Commoner
Posts: 25
Joined: Thu Mar 18, 2010 7:12 pm
Location: Edina, Minnesota

move_uploaded_file() different directory

Post 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;
                              }
Quazel
Forum Commoner
Posts: 25
Joined: Thu Mar 18, 2010 7:12 pm
Location: Edina, Minnesota

Re: move_uploaded_file() different directory

Post by Quazel »

anyone?
Post Reply