<?
$url = $_REQUEST[url];
?>
<html>
<body>
<form>
<center>
Enter image URL:
<input type="text" name="url" value="<? echo "$url";?>" />
<input type="submit" />
</center>
<?
/* Converts $url into an array then a list of variables */
if ( isset($url) )
{
list($width, $height, $type, $attr) = getimagesize("$url");
if ( $type == 1 )
{ $type =gif ;}
if ( $type == 2 )
{ $type = jpg;}
if ( $type == 3 )
{ $type = png;}
if ( $type == 4 )
{ $type = swf ;}
echo "<textarea width=\"100%\" growable>";
echo "<img src=\"$url\" $attr />\n";
echo "File type = $type";
echo "</textarea>";
}
?>
</form>
</body>
</html>