Raj Singh Posted November 16, 2007 Share Posted November 16, 2007 Is that possible to save memory state to a file? (i.e. the content of every variable) thank you Link to comment https://forums.phpfreaks.com/topic/77568-solved-saving-memory-state/ Share on other sites More sharing options...
kratsg Posted November 16, 2007 Share Posted November 16, 2007 Sounds like you would need to look at the serialize() and unserialize() functions. Link to comment https://forums.phpfreaks.com/topic/77568-solved-saving-memory-state/#findComment-392631 Share on other sites More sharing options...
Raj Singh Posted November 16, 2007 Author Share Posted November 16, 2007 Yes, I will do that. I hope I can keep reference to objects and it wont just copy the data. Thank you. Link to comment https://forums.phpfreaks.com/topic/77568-solved-saving-memory-state/#findComment-392634 Share on other sites More sharing options...
kratsg Posted November 16, 2007 Share Posted November 16, 2007 If you mean by using classes... You can store the variable if it connects to a class, as long as you re-include the class in the page that you unserialize the variable in (if that makes sense). Link to comment https://forums.phpfreaks.com/topic/77568-solved-saving-memory-state/#findComment-392639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.