PHP Warning: imagejpeg(): Invalid 2nd Parameter, it must a filename or a stream

Asked

Viewed 925 times

0

I have the following code

imagejpeg($new_im, false, 70);

Then returns the error:

PHP Warning: imagejpeg(): Invalid 2nd Parameter, it must a filename or a stream in /home/sisv2/sis_adm/version/demo/includes/control/mooeditable_functions.ctrl.php on line 151

  • 1

    The second argument should be the file name, http://php.net/manual/en/function.imagejpeg.php

1 answer

0


Refer to the method documentation and you will see that the second argument should be the file name. He and the third are optional, but if passed should be according to the expected function.

http://php.net/manual/en/function.imagejpeg.php

[]s

Browser other questions tagged

You are not signed in. Login or sign up in order to post.