title: get file path from url in php?
body: <p>I am using php sdk for uploading images to facebook album.For this I need to give real path of Images.Incase of my server I can give real path of the image and upload to facebook is working fine. But here I want to upload images to facebook album via using external image URL.
  ie,I want to upload image to fb by using following image URL.<a href="http://i.nokia.com/r/image/view/-/2003984/highRes/2/-/Lumia-620-Smart-Shoot.jpg" rel="nofollow">http://i.nokia.com/r/image/view/-/2003984/highRes/2/-/Lumia-620-Smart-Shoot.jpg</a></p>
  
  <pre><code>$this-&gt;facebook-&gt;setFileUploadSupport(TRUE);
  
             $photo = $this-&gt;facebook-&gt;api('/*********/photos', 'POST', array(
                        'access_token' =&gt; $this-&gt;config-&gt;item('facebook_page_access_token'),
                        'source' =&gt; '@' .$imagePath,
                        'message' =&gt; "description text"
                            )
            );
  </code></pre>
  
  <p>This is my code for uploading images to FB.
  here how can I get path of the image by using given URL in php?</p>