用ftp函数:
ftp_connect :打开ftp链接。
ftp_login: 等入ftp服务器。
ftp_put :文件上传。
ftp_quit :关闭ftp链接。example: upload.php
<html>
<head>
<title>文件上传到服务器</title>
</head>
<body>
<?
$con=ftp_connect("yourhost",21(;
ftp_login($con,"webuuser","password");
ftp_put($con,$userfile,$userfile,FTP_BINARY);
echo ("文件$userfile 已经上传到服务器!");
ftp_quit($con);
?>
</body>
</html>

解决方案 »

  1.   

    你提示的想法,我是过了,它只能把web服务器器上的文件传到ftp服务器上。
    我是要把客户端的大量图片传到WEB服务器上。
      

  2.   


     why not use form? 能说说原因吗?
     
      

  3.   

    知道copy()函数吧,用用看
    只需要一个<input type="file" name="file">
    和一个<input type="button" name="Submit" value="Submit">
    就可以了
      

  4.   

    platinum(白金)
    he don't like it so that he ask for other solution.
    but in my mind,he were a fool.
      

  5.   

    ch89
    you can design a dll or other way that can be run on the web server.
    it just like the COM+ run in IIS.
    you can send the info to the dll to upload it.
      

  6.   

    ch89,but by the way ,this solution is danger.
      

  7.   

    用php提供的套接字(socket)能不能实现?