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

0

I have the following code

imagejpeg($new_im, false, 70);

Then it returns the error:

  

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

    
asked by anonymous 16.03.2015 / 16:00

1 answer

0

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

link

[] s

    
16.03.2015 / 16:27