Skip to content
Advertisement

Tag: sftp

SFTP Opendir failing when called via Function

I have a bunch of php pages that are running on a schedule that pull data from different SFTP sources, to try and minimise this as a temporary fix I am turning them into functions and having one page that calls each of them However, when converting these to functions the pages are giving me error 500, through process of

End of file error for phpseclib for any file get

I’m getting a NET_SFTP_STATUS_EOF: End of file error for any file downloaded from a particular SFTP Server using phpseclib. A similar question was asked here though I don’t think it has any resolution. Oddly though, all the files seem to be importing correctly and with the same file size, however, the error is still produced and is making me slightly

Advertisement