I am having immense trouble trying to show a picture I have on my FTP-Server inside another website. What I've been trying so far, is to show the image inside of an iFrame. My code is the following:
<body>
<?php
$pic = file_get_contents('ftp://username:password@servername.net/image.jpg');
echo "<iframe src=". $pic . "> </iframe>";
?>
</body>
This is basically the code that seemed to work for other users when this question was asked, but instead for me it shows an iframe with the following message:
Not Found
The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at servername.net Port 1234
I really do not know what to try anymore, since I've tried pretty much every solution I found, so I hope one of you has any idea how to help me.