Uploading file through FTP using PHP

后端 未结 6 997
我在风中等你
我在风中等你 2020-12-13 06:54

I\'m curious how to upload file through FTP using PHP. Let\'s say I have upload form and user have uploaded a file. How to transfer the file (without moving from temp direct

6条回答
  •  情歌与酒
    2020-12-13 07:49

    FTP password must be in single quote otherwise it will not accept special characters

    $ftp_server="";
    $ftp_user_name="";
    $ftp_user_pass=''; // this is the right way 
    $file = "";//tobe uploaded
    $remote_file = "";
    

提交回复
热议问题