Re: Copying an uploaded file...

From: Date: Thu, 30 Oct 2003 15:26:07 +0000
Subject: Re: Copying an uploaded file...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168159@lists.php.net to get a copy of this message
Ah, man, I just found my problem, and do I ever feel stupid... Thought I'd share it to highlight the "it's right in front of one's nose" feeling: copy($_FILES['userfile']['tmp_name']... ...was a sample code snippet. I had just copied and pasted it without changing the "userfile" part—and since there was no 'userfile' in my form, it would never have worked. Using my own variable pointer $fld works. Thus: copy($_FILES[$fld]['tmp_name']. ...works. And that is all. In any case, thanks for the suggestions. ...Rene On Wednesday, October 29, 2003, at 11:28 PM, John Nichel wrote:
René Fournier wrote:
I've added a path, but still no success....
Does your webserver (Apache?) have write permission to the directory you're trying to move the file too? -- By-Tor.com It's all about the Rush http://www.by-tor.com


« previous php.general (#168159) next »