YBthebest Posted December 2, 2010 Share Posted December 2, 2010 Hello! http://tutudragon3.info/maths_problem_image.php My problem is: I want to get the link to this image...but in .jpg, see what I mean? a file_get_contents of that page gets me some weird binary text and stuff. Is it possible? Thanks ! Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/ Share on other sites More sharing options...
litebearer Posted December 2, 2010 Share Posted December 2, 2010 show us your code Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/#findComment-1142277 Share on other sites More sharing options...
Rifts Posted December 2, 2010 Share Posted December 2, 2010 there is no image there? Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/#findComment-1142281 Share on other sites More sharing options...
YBthebest Posted December 2, 2010 Author Share Posted December 2, 2010 http://tutudragon3.info/maths_problem_image.php I see an image herE? $url = file_get_contents($url_image); echo $url; and $url is that url above Thanks Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/#findComment-1142285 Share on other sites More sharing options...
YBthebest Posted December 2, 2010 Author Share Posted December 2, 2010 Oh and if that link doesn't show any image... http://extreme-redeemer.com/math_captcha There you go Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/#findComment-1142294 Share on other sites More sharing options...
mikecampbell Posted December 2, 2010 Share Posted December 2, 2010 What do you want to do with the image once you've retrieved it? If you want to load it into a GD image resource you can use imagecreatefromstring(). From there you can manipulate it, display it, etc. However.... maths_problem_image.php is throwing an error "Notice: Undefined index: uid in /home/tutudragon3/www/maths_problem_image.php on line 53". I believe this will cause imagecreatefromstring() to fail. Link to comment https://forums.phpfreaks.com/topic/220478-get-an-image-created-by-php/#findComment-1142356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.