Jump to content

Managing files and memory


uncleronin

Recommended Posts

I haven't been able to find an answer to this on the net (my searching skills are crap): what happens to objects once a PHP script has finished running? What happens to files that have been opened?

 

The reason I'm asking is because I often open and read files in my scripts but I never actually close them anywhere. Is this an acceptable practice or should I close them? Also I often use global variables. Do they take up memory and then get deallocated or do they still reside somewhere? Can anyone provide some good links or information on memory and file management?

Link to comment
https://forums.phpfreaks.com/topic/38610-managing-files-and-memory/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.