Jump to content

PHP Warning


sandy1028

Recommended Posts

PHP Warning: fopen(Staff map (b&amp;w) by AVERY EASTER<br/>Canon plant<br/>)

 

   
function getJpeg($img) {
        $handle = fopen($img, "rb") or die("Invalid file stream.");
----
}

sometimes, $img variable doesn't have the valid URL. Looks something like

fopen(Staff map (b&amp;w) by AVERY EASTER<br/>Canon plant<br/>)

 

So it doesn't execute the further code. How to avoid this. Please suggest.

Link to comment
https://forums.phpfreaks.com/topic/246449-php-warning/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.