yoded Posted March 4, 2010 Share Posted March 4, 2010 Hi , I was just toying around with generating a php image , and I would like to know how to make objects you generate in a php image to act as a hyperlink.Sorry for the noob question,but to whomever might answer , already thanks for your help! Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2010 Share Posted March 4, 2010 An image doesn't really have objects, it's just an image. In HTML you can either make an entire image a link, or you can use an image map to define clickable regions. This happens in HTML when you embed the image, not when you create it (regardless of how you create it). Link to comment Share on other sites More sharing options...
syco Posted March 5, 2010 Share Posted March 5, 2010 JustSomeGuy is correct, i have an example of a random generator, that generates different images, but the file is .php but the doctype is jpg therefore there is no echo which mean no hyperlink. As JustSomeGuy said you could embed the image somewhere to a hyperlink.http://thenoobcrew.com/phpimagestuff/ Link to comment Share on other sites More sharing options...
Synook Posted March 5, 2010 Share Posted March 5, 2010 Err, I think you mean the MIME type (or "internet media type" as we are apparently supposed to call it now) :)Note that if you do generate an image using PHP you do have to echo out the image data eventually. Link to comment Share on other sites More sharing options...
yoded Posted March 5, 2010 Author Share Posted March 5, 2010 alright then ,I'll have to make it the challenge to find another solution to my problem then!thanks annyway! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.