"failed to open stream: operation failed" when using FTP URL wrapper with file_get_contents [duplicate]
I want to echo a XML file from a FTP server. I have the following code: $contents = file_get_contents('ftp://'. urlencode('*myusername*') . ':'. urlencode('*mypassword*') . '@www.ms5awhosting.de/20180306_0000035.xml'); echo $contents; But I get the following warning: Warning: file_get_contents(ftp://[email protected]/20180306_0000035.xml): failed to open stream: operation failed in ... Has anyone got an idea what I'm doing wrong?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.