looking for some good file uplaod how-to’s. have searched the internet and have found very little. does anybody have any good links for this or how-tos they can post?
Not looking for a script, looking to learn how to write a script.
@DARTHTAMPONauthorOct 03.2004 — #for the html side MAX_FILE_SIZE, if I have more than 1 file to uplad can i put different sizes for each. Will this give me an error or use the same file size for all of the files.
@MstrBobOct 03.2004 — #MAX_FILE_SIZE is more important to the browser. If you have multiple upload inputs, than I'd say that your best bet is to have MAX_FILE_SIZE equal the max file size of the largest file. If you want the other uploads to have smaller max file size, tell the user the max file size for those uploads, and then check the individual files in your PHP. But only have one max file size input tag.
@Paul_JrOct 08.2004 — #[font=palatino linotype]The [font=courier]upload_tmp_dir[/font] directive is just the temporary upload directory; after the file is uploaded to that temporary directory, you copy it over to your desired directory.[/font]
and is this command correct, can I change a filename on a move. [/B][/QUOTE] [font=palatino linotype]I couldn’t say; I’ve never used PHP through the command line. Sorry.[/font]
@MstrBobOct 09.2004 — #Why not simply use the [URL=http://us2.php.net/manual/en/function.move-uploaded-file.php]move_uploaded_file()[/URL] function? You can rename a file easily enough, as well
now all of the information comes out correct the output on the page becomes /caboo/db_input/brands/brand2.php/temp/s_test.txt when i try to upload a text file called test. everything seems to look fine but no file is ever uploaded. The temp directory i created i chmod 777. does anybody see anything that might be wrong or can anybody give me a clue