I have the following url which returns an image in the body, How would I assign that image to a variable so that I could save it or use it within my code?
The following code returns noting:
<?php
$url = "https://media.licdn.com/dms/image/C4E03AQGOM3p0fHNkwQ/profile-displayphoto-shrink_100_100/0?e=1556755200&v=beta&t=qeQFKYXpev2ZW3hmP1ODDPd3DYPWvl-GaUnPSZG-aQA";
$image = file_get_contents($url);
echo $image;
?>