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 ! Quote Link to comment Share on other sites More sharing options...
litebearer Posted December 2, 2010 Share Posted December 2, 2010 show us your code Quote Link to comment Share on other sites More sharing options...
Rifts Posted December 2, 2010 Share Posted December 2, 2010 there is no image there? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.