Search code examples
phpfileunlink

unlink function not working on files over 1mb


Does anyone know why the unlink function would be working with a file under 1mb but fails with one above 1mb? Is there a setting in the php.ini I need to change?

Cheers


Solution

  • Solved. Was not the unlink function in the end was the memory_limit in php.ini having an effect on the imagecreatefromjpeg function. Limit increased and problem solved.