I have a downloaded picture script that worked previously. Now it is broken, and I traced the problem to one line:
$temp = tmpfile(); // $temp === false
The tmpfile () function returns false. I canβt understand why. It's hard for me to wade through Google on this one.
The script is only broken on my local test environment, OSX 10.6.7, running MAMP 1.9.5. Fortunately, the site is working fine.
source share