-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot upload file with ftps on PHP7 #85
Comments
@dg Any hints what should I try to help resolve this issue? |
It seems that ftp in PHP doesn't work with Wedos. I am unable to list files via $f = ftp_ssl_connect('12345.w71.wedos.net');
ftp_login($f, 'user', 'password');
var_dump(ftp_nlist($f, '*')); ftp_connect works fine. |
Actually, this is more PHP problem than Wedos problem. After contacting their support I found that they require How to reproduce: set_error_handler(function ($severity, $message) {
echo $message;
});
$f = ftp_ssl_connect('12345.w91.wedos.net');
ftp_login($f, 'user', 'pass');
ftp_pasv($f, TRUE);
ftp_fput($f, 'file', fopen(__DIR__ . '/file', 'r'), FTP_BINARY);
|
@dg So if you don't want to use alternative ftp client implementation, we can close this issue... edit: Or maybe there might be some better error when this occurs. |
Do you know alternative client? ad better error: it is good idea, can you send PR? |
The only one client which uses sockets I found is ngyuki/php-ftp-client, but it doesn't support ftps. I'll try to find some time to send PR. |
FYI, SSL session reuse will be added to PHP 7.1 and 5.6.26. |
Great, so closing. |
$ php -v i have still same problem with this settings :( |
Still same problem with PHP 7.2.3 |
Hi all, Have You someone solved this ??? I have same problém and in version 7.1.17 |
Hi all, check if your temp folder exist. My was deleted and ftp_nlist returns bool(false).. I created it again and now it is ok. |
After update to PHP7 on Windows I tried to use ftps instead of ftp protocol since openssl is bundled in php, but deployment with ftps protocol doesn't work as expected.
If I run deployment via ftp, it works normally:
But if I run it with ftps i get strange error
Error: Ok to send data.
Also, the log falsely says that remote.htdeployment
does not exist. File.htdeployment.running
is created.PHP 7.0.8, ftp-deployment 2.5, Wedos hosting
The text was updated successfully, but these errors were encountered: