![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
21-06-2007, 15:56
|
|
|
חבר מתאריך: 14.03.07
הודעות: 13
|
|
עזרה בסקריפט upload
משהו יכול לעזור לי עם הסקריפט הזה ?
קוד PHP:
<html> <head> <title>testing</title> </head> <?php $file_dir = "/upload"; $file_url = "ftp://barak1.il-il.com/domains/barak1.il-il.com/public_html/uploads/"; if (isset($fupload)) { print "path: $fupload<br>\n"; print "name: $fupload_name<br>\n"; print "size: $fupload_size bytes<br>\n"; print "type: $fupload_type<p>\n\n"; if ($fupload_type == "image/gif") { copy ( $fupload, "$file_dirq($fupload_name") or die ("Couldn't copy"); print "<img src=\"$file_url/upload_name\"><p>\n\n"; } } ?> <body> <form enctype="multipart/form-data" action="<?print $PHP_SELF?>" method="POST"> <input type="hidden" name="MAX_FILE_SIZE value="51200"> <input type="file" name="fupload"><br> <input type="submit" value="upload!"> </body> </html>
|