Re: [PHP] Copying an uploaded file...

2003-10-30 Thread René Fournier
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 partand since

Re: [PHP] Copying an uploaded file...

2003-10-30 Thread Curt Zirzow
* Thus wrote René Fournier ([EMAIL PROTECTED]): 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']... You should really use:

[PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway, here is the code:

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
René Fournier wrote: I'm trying to get a little upload script working... But I can't seem to copy the tmp file to my local web directory (btw, do I really need to specify the path, or can I just use a filename, and the file will be written to the same directory as the PHP script??). Anyway,

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo Success!; } else {

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread David T-G
Rene -- ...and then René Fournier said... % % Thanks John. I've simplified and improved the quote per your % suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the % code: % % // MOVE FILE % if % (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo Success!; } else {

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
René Fournier wrote: Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if (move_uploaded_file($_FILES['userfile']['tmp_name'],$_FILES['userfile'][ 'name'])) { echo Success!;

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread René Fournier
I've added a path, but still no success On Wednesday, October 29, 2003, at 05:11 PM, John Nichel wrote: René Fournier wrote: Thanks John. I've simplified and improved the quote per your suggestions, but still no dice. (I'[m running OS X 10.2.8.) Here is the code: // MOVE FILE if

Re: [PHP] Copying an uploaded file...

2003-10-29 Thread John Nichel
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,