PHP Proxy Script - Download via FTP

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Nov 25, 2017 11:57 pm

Sun Nov 26, 2017 12:03 am


I hope any of you can help me here. Just can't get it to work :-)
I try to use the PHP Script to get WP-all-import working for a FTP Server.
I use the following script:
I get passed the first stage to successfully login but then I get this error:
–> Failed to download file.

Does it have anything to do with what I put in here:
// Download data to this file.
$local_file = ‘datafeed.csv.’;
// Path and filename to open and read from.
$server_file = ‘public_html/ftpfiles/data-example-2.csv’;

And if yes what exactly should be there? Do I need to create any folders in my cpanel?

Thank you in advance.


Post Reply