How do you encode a resource Id intothe query string?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
twrofpwr
Forum Newbie
Posts: 17
Joined: Wed Jun 15, 2005 8:46 pm

How do you encode a resource Id intothe query string?

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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...
Post Reply