Saya mo nanya dikit nich(bingung).....
Saya membuat script php untuk upload file (sbg contoh Saya pake upload file 
image/GIF) dan diteruskan untuk dicopy ke suatu folder.Saya buat scriptnya 
kayak gini:
 
<html>
<head>
<title>file upload</title>
</head>
<?php
$file_dir = "tes/uploads";
$file_url = "http://localhost/tes/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" )   //untuk mengopy file image *.gif
{
copy ( $fupload, "$file_dir/$fupload_name") or die ("Couldn't copy");
print "<img src=\"$file_url/$fupload_name\"><p>\n\n";
}
}
?>
<body>
<form enctype="multipart/form-data" action="<?php print $PHP_SELF?>" 
method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="10000">
<input type="file" name="fupload"><br>
<input type="submit" value="Kirim">
</form>
</body>
</html>
 
Setelah saya jalanin,masih error padahal folder uploads sudah saya
buat.Ngomong errornya kayak gini :
 
path: C:\apache\php\php8281.TMP
name: _ERSIO~1.GIF
size: 11127 bytes
type: image/gif 

Warning: Unable to create 'tes/uploads/_ERSIO~1.GIF': No such file or 
directory in c:\apache\htdocs\tes\proses.php on line 16
Couldn't copy

Mohon koreksi dan pencerahannya.Terima Kasih...
-- 
_______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.

Powered by Outblaze

--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis

Kirim email ke