// example.php
<?
if( isset($f) )
{
if($f!="" && file_exist($f) )
{
echo "upload file successed.<br>\n";
echo "FileName:$f_name<br>\n";
echo "FileSize:$f_size<br>\n";
echo "FileType:$f_type<br>\n";
echo "File :$f<br>\n"; //then,you will do this:
link($f,$somewhere); }}
<form encType=multipart/form-data method=post>
<input type=file name=f>
<input type=submti>
</form>
<?
if( isset($f) )
{
if($f!="" && file_exist($f) )
{
echo "upload file successed.<br>\n";
echo "FileName:$f_name<br>\n";
echo "FileSize:$f_size<br>\n";
echo "FileType:$f_type<br>\n";
echo "File :$f<br>\n"; //then,you will do this:
link($f,$somewhere); }}
<form encType=multipart/form-data method=post>
<input type=file name=f>
<input type=submti>
</form>
if(copy($downlink,"/usr/soft/$downlink_name"))
// <INPUT TYPE="file" NAME="downlink">downlink为上传的文件名{
$loadbook=1;
unlink($downlink);//删除临时文件
}
else
{
$loadbook=0;
unlink($downlink);
}