getting the correct image url
<p>i have this image link below:</p>

<pre><code>http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;ASIN=B008EYEYBA&amp;Format=_SL110_&amp;ID=AsinImage&amp;MarketPlace=US&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=mytwitterpage-20 
</code></pre>

<p>but if you click it and view it in a browser, the actual url of the image file is this:</p>

<pre><code>http://ecx.images-amazon.com/images/I/418lsVTc0aL._SL110_.jpg
</code></pre>

<p>any idea how I can parse the image link above to get the actual jpg file using php?</p>
