Jump to content

Get ready to be puzzled


BIGjuevos

Recommended Posts

How does one save a resource(such as a socket) within a class based object from one script for use within another script which is later executed.

OK, before you start asking me questions, let me state what I know:
-The PHP website says that you cannot store a resource in a session, which I tried and found out the hard way.
-You cannot serialize a resource and store it on the filesystem, tried that too.
-I don't know how to do binary operations on the filesystem with PHP.

Possible Solutions, which I don't know how to implement
-Could I save the class/resource to the file system in it's entirety and be restored later.

OK, that's all I have. I have faith in you gurus. So please help this intermediate user out!

Thanks in advance,
Ryan
Link to comment
https://forums.phpfreaks.com/topic/32617-get-ready-to-be-puzzled/
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.