How to send cookie with image request

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

How to send cookie with image request

Postby Niro » Wed Jul 07, 2010 4:20 am

Hello Experts,

I'm using 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,
Niro
Niro
Forum Newbie
 
Posts: 1
Joined: Wed Jul 07, 2010 4:14 am

Re: How to send cookie with image request

Postby greyhoundcode » Fri Aug 13, 2010 1:22 pm

Cookies and GD are two very different areas. Use setcookie() or a framework equivalent.
User avatar
greyhoundcode
Forum Regular
 
Posts: 611
Joined: Mon Feb 11, 2008 5:22 am


Return to PHPGD.com

Who is online

Users browsing this forum: No registered users and 6 guests