title: Create Image From Url Any File Type
body: <p>I know of <a href="http://us2.php.net/manual/en/function.imagecreatefromgif.php" rel="noreferrer"><code>imagecreatefromgif()</code></a>, <a href="http://us2.php.net/manual/en/function.imagecreatefromjpeg.php" rel="noreferrer"><code>imagecreatefromjpeg()</code></a>, and <a href="http://us2.php.net/manual/en/function.imagecreatefrompng.php" rel="noreferrer"><code>imagecreatefrompng()</code></a> but is there a way to create an image resource (for png preferably) from a url of <em>any</em> type of valid image? Or do you have to determine the file type and then use the appropriate function?</p>
  
  <p>When I say url I mean something like <code>http://sample.com/image.png</code>, not a data url</p>