Re: file upload

From: Date: Mon, 28 Mar 2005 08:00:05 +0000
Subject: Re: file upload
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-211688@lists.php.net to get a copy of this message
William Stokes wrote:
Okl I can't reverse engineer that... I just need to know how to set the path. now I have it like this and it wont work. $fileame comes from a form. if (copy($filename, "/imagedir/" . $filename_name)) print "<H2>upload succesful!</H2>";
Don't use copy(), use move_uploaded_file() See http://www.php.net/manual/en/features.file-upload.php

« previous php.general (#211688) next »