readfile($img);

I get the following error message.

PHP Warning: readfile() has been disabled for security reasons in rotate.php on line 192

How does one get it to work again?

Thanks for your assistance

Comments

patricksettle’s picture

Your hosting provider has decided to (for whatever reason) to restrict your access to readfile()

you can try replacing the readfile() call at line 192 with:

  $handle=@fopen($img,"r");
  echo @fread($handle,filesize($img));
  @fclose($handle);

or maybe

echo file_get_contents($img);
Lioz’s picture

Status: Active » Closed (won't fix)