jm***@yahoo.com (jmev7) wrote in message news:<c7**************************@posting.google. com>...
Pedro <he****@hotpop.com> wrote in message news:<bn*************@ID-203069.news.uni-berlin.de>... jmev7 wrote: Is there a script that will allow upload of multiple images at once to
a FTP server, and simultaneously write that list to a MySQL table? I
need to allow users to do something like this.
I doubt it very much.
Probably the best approximation you'll be able to dig out
will upload the multiple files *sequentially*.
Apart from that, yes, I'm pretty sure there is.
Actually, sequentially makes sense. I don't mind limiting myself to,
say, 5 textboxes with "browse" buttons next to them. Then, the user
selects 1-5 images, clicks "UPLOAD" (or submit, or whatever), and the
upload begins, with the SQL statement to follow. I can figure out the
SQL statement (I think) better than I can the array to step through.
Any suggestions on code to lookup?
Thanks
Hi, First are you sure you wanna to use FTP, I think the best way is
to use file upload build in in PHP or/and use GD2 wich is comes with
php latest versions
Here some exampe how to upload one photo :
if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
$imtype=$_FILES["photo"]["type"];
$imsize=$_FILES["photo"]["size"];
$imname=$_FILES["photo"]["name"];
$imtemp=$_FILES['photo']['tmp_name'];
$im = add_image($imtype , $title, $description, $sub_cat)
or die("couldnt add photo");
move_uploaded_file($imtemp, "im1/$im.$extension");
where function add_image adding imaage to DB!
If you wanna to add multi. immages just use for()....
Check my web site:
http://haifa.us