Assign image from url to a variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rrn
Forum Commoner
Posts: 46
Joined: Wed Apr 15, 2009 7:54 am

Assign image from url to a variable

Post 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.
dk80
Forum Newbie
Posts: 2
Joined: Thu Apr 23, 2009 6:29 am

Re: Assign image from url to a variable

Post 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.
Post Reply