Page 1 of 1

Assign image from url to a variable

Posted: Thu Apr 23, 2009 3:21 am
by rrn
hi ,

Code: Select all

                                       
$graph = "http://www.abc.com/ss";
is the above shown code correct ?
i want to take the image from the url and assign it to $graph.
is it the right way to do it??

pls give a solution.

thank you.

Re: Assign image from url to a variable

Posted: Thu Apr 23, 2009 7:48 am
by dk80
That code assigns the string "http://www.abc.com/ss" to the variable $graph. If you are looking to load images into php for editing then I suggest you have a look at the
GD library http://uk.php.net/gd.