Page 1 of 1

How do you encode a resource Id intothe query string?

Posted: Thu Jun 16, 2005 10:49 am
by twrofpwr
Is it possible to send an resource id from say a imagecreatefromjpeg via a query string to a img src tag ?

For some reason I cannot get this resoruce Id to go through the session variable, and I start the session and everything correct. I don't know what is gong on, but is this possible through _GET[]?

Thanks

Posted: Thu Jun 16, 2005 11:01 am
by timvw
From the manual on Session Handling

Warning
Some types of data can not be serialized thus stored in sessions. It includes resource variables or objects with circular references (i.e. objects which passes a reference to itself to another object).

What you could do is save the image to a file... And then open that image again.. And thus recieve the handle to the image again...