When you create a file in php://temp (or php://memory for that matter) the resource only lasts the lifetime of the script. If you open the file using
fopen()
to get a resource handle, the lifetime can be shortened using fclose($resource_handle)
.
In your case, as soon as your script is done executing, the file will no longer be in memory.
In the circumstance where you would like to clear the memory prior to script completion, all you have to do is
fclose()
the resource file pointer.
On another note, the
/img
you are using is invalid and is being ignored. The only added data that is recognized is /maxmemory:n
.
No comments:
Post a Comment