I am currently using the following method to recieve images from my FTP server: <img src="Username:Password@Url />, however, I was wondering wether there exists any safer way to do this?
PHP is available.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t condone requesting images like this, but you could request the contents of the image via something
file_get_contents(or even better cURL) and save it to your server. Like so (am using file_get_contents for speed of example, definitely use cURL):Then..