I know that it can be used with imagecreatefromjpeg (), imagecreatefrompng (), etc. with the url as the file name with fopen (), but I cannot enable shells due to security issues. Is there a way to pass the imagecreatefromX () url without their permission?
Ive also tried using cURL, and this also gives me problems:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.../image31.jpg"); //Actually complete URL to image curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); $image = imagecreatefromstring($data); var_dump($image); imagepng($image); imagedestroy($image);
iRector
source share