tags:

views:

20

answers:

1

Hello Experts,

I'm using PHP GD to fetch an image from a remote server. $res=imagecreatefromJPEG ($url);

I need to have a cookie set with a value along with the call to get the image.

Is this possible with GD? How would I do that?

Thanks

+2  A: 

Use stream_context_set_default and the header option to send a cookie header.

Sjoerd