Ftp_put path problem

Source: Internet
Author: User
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!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.