Want to use the Ftp_put function to upload a file to the specified directory, the connection is successful, but the upload prompt
Ftp_put () [Function.ftp-put]: usopp:upyunfs-403 not Access.
Echo ftp_put ($conn, "caiputu/xuanzhuan.jpg", "xuanzhuan.jpg", ftp_ascii);
Ask if the server path is not written wrong,
Reply to discussion (solution)
403 not Access.
Apparently, there's not enough authority.
There should be no write permission for the uploaded folder
Caiputu/xuanzhuan.jpg
Post permission to see
Permission is 777
There should be no open Write permission on the FTP server side. If you're using Vsftp,write_enable=yes.
Does the Caiputu directory exist on the server?
Before executing ftp_put, it is better to switch to the target directory Ftp_chdir first
As a result, the target directory can be determined to exist, and there are fewer paths to ftp_put multiple times, reducing the probability of errors
Does the Caiputu directory exist on the server?
Before executing ftp_put, it is better to switch to the target directory Ftp_chdir first
As a result, the target directory can be determined to exist, and there are fewer paths to ftp_put multiple times, reducing the probability of errors
There is this directory,
Using the FTP tool to transfer this file is OK, with PHP but can not pass ...
Is the user name the same as the tool?
is the directory on the root?
Is the user name the same as the tool?
is the directory on the root?
The same, the directory is also on the root, the feeling is the server problem
If it's a server problem, what are you asking here? Find a Supplier!