Php file tries to download instead of execute code
<p>I have the following in my .php file.  Just trying a simple search on Flickr.  When I visit this .php page in my browser a download dialog pop up.  I was expecting to see the json echoed out on the page. I am using WAMP and have url <code>fopen()</code> enabled.If I comment out this code and echo out "WORKING" it does work just fine.</p>

<pre><code>$api_key = "MYKEYHERE";
$tag = 'flower';
$perPage = 25;
$url = 'http://api.flickr.com/services/rest/?method=flickr.photos.search';
$url.= '&amp;api_key='.$api_key;
$url.= '&amp;tags='.$tag;
$url.= '&amp;per_page='.$perPage;
$url.= '&amp;format=json';
$url.= '&amp;nojsoncallback=1';
header('Content-Type:text/json;');
echo file_get_contents($url);
</code></pre>

<p>Seems something is wrong somewhere?</p>
