I have a function that resizes an image file that you pick locally and it acquire on post with the follwoing method:
$image = $_FILES[$inputName];
I am trying to edit the function so that it accepts an image file that is located on the web (i.e. http://www.yourname.com/images/pig.jpg). How do I get the file into a variable in the same formate as the $_FILES method above?
$image = file($inputName);
$image = file_get_contents($inputName);
$image = fopen($inputName, "r");
But none seam to get it into the same format that will feed properly into the other functions such as:
imagecreatefromjpeg()
getimagesize()
etc...
Gurus, please help!!!
3dron