title: Quandl API CSV File Returning only the column headers
body: <p>I am trying to do a simple pull from the Quandl Data API for stock price information. I have found the following URL from their documentation that should pull the stock data for AAPL stock - <a href="https://www.quandl.com/api/v1/datasets/WIKI/AAPL.csv?trim_start=2013-12-25&amp;trim_end=2013-12-31" rel="nofollow">https://www.quandl.com/api/v1/datasets/WIKI/AAPL.csv?trim_start=2013-12-25&amp;trim_end=2013-12-31</a></p>
  
  <p>If I load this URL in the browser I get the csv file just fine. However, if I try to pull the file using php, I only get the column headers of the file. Here is my code:  </p>
  
  <pre><code>$url = "https://www.quandl.com/api/v1/datasets/WIKI/AAPL.csv?trim_start=2013-12-25&amp;trim_end=2013-       12-31";
  $fp = fopen($url,'r') or die("can't open file");
  $csv_array = (fgetcsv($fp));
  print_r ($csv_array);
  </code></pre>
  
  <p>And this returns - Array ( [0] => Date [1] => Open [2] => High [3] => Low [4] => Close [5] => Volume [6] => Ex-Dividend [7] => Split Ratio [8] => Adj. Open [9] => Adj. High [10] => Adj. Low [11] => Adj. Close [12] => Adj. Volume )</p>
  
  <p>But those are just the column headers from the csv file. It doesn't contain any of the actual data.</p>
  
  <p>Anyone know what might be going on here?</p>
  
  <p>Thank you,
  Dylan</p>