
April 25th, 2000, 03:32 PM
|
|
Contributing User
|
|
Join Date: Apr 2000
Posts: 63
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
I assume you mean upload in this response. Here's a page that's 1/2 mine and 1/2 a million other programmers... it's where I started
<?php
if ($Form_send_button)
{
set_time_limit(60);
print ($Form_file_up);
# print ("The file type is :" . filetype(basename($Form_file_up)));
$path1 = "C:/windows/temp/";
$dest = $path1 . $Form_file_up_name;
# print ("The uploaded path is $dest");
if(copy($Form_file_up,$dest))
{ // copy the file from the temp directory to the upload directory, and test for success
echo "$dest has been uploaded<br>n";
}
else
{
echo "Upload directory not write-enabledn"; // you need to write-enable the upload directory // set flag
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="LibUpload.php3">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10485760">
Send this file: <INPUT NAME="Form_file_up" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File" name='Form_send_button'>
</FORM>
</body>
</html>
|