Imagecreatefrompng() failed to open stream: HTTP request failed

Hi i am using tcpdf and last 2 days showing error imagecreatefrompng() failed to open stream: HTTP request failed <big>I am using on same server imagecreatefrompng("http://fresheats.com/images/watermark.png");</big>
Deepak Sharma
Asked 20-11-2024
838

Answer (1)
hi  firstly load image or file at local using  file_get_contents(); php function  ex :  $x  = file_get_contents(("http://fresheats.com/images/watermark.png"); imagecreatefrompng($x); It will work.
Harsh Aggrawal
Asked 27-09-2019
45 Likes
Comments
Write comment

Submit your answer