moving uploaded files

From: Date: Thu, 27 Feb 2003 20:58:08 +0000
Subject: moving uploaded files
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3993@lists.php.net to get a copy of this message
Hi again, I am using HTML_QuickForm to take some data and upload a file. I have gotten this much working. The sample code I am working from has this part for the file upload: $form->moveUploadedFile('myfile', '/tmp', 'testfile.txt'); I can't figure out how or where to move the file to that is more useful for my application. I have tried other directories, but get these errors: Warning: move_uploaded_file(/Users/ckline/Documents/Junk/testfile.txt) [function.move-uploaded-file]: failed to create stream: Permission denied in /usr/local/lib/php/HTML/QuickForm.php on line 480 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpFMNrN3' to '/Users/ckline/Documents/Junk/testfile.txt' in /usr/local/lib/php/HTML/QuickForm.php on line 480 Where do you folks usually upload files to if they then need to accessed via http later on? Running FreeBSD - not really that familiar with Unix. Thanks, Charles

« previous php.pear.general (#3993) next »