/ Published in: PHP

Gets data from Voyager probe
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $url = 'http://voyager.gsfc.nasa.gov/cgi-bin/heliopause_all'; $parameters_str = ''; 'average'=>'6hour', 'syear'=>'9999', 'smonth'=>'9999', 'sday'=>'9999', 'eyear'=>'9999', 'emonth'=>'9999', 'eday'=>'9999', 'sat'=>'1', 'mnemonic'=>'IPGH', 'duration'=>'3-months', 'outputType'=>'list', 'timeFormat'=>'ISO' ); foreach ($parameters as $k => $v) { $parameters_str .= $k . '=' . $v . '&'; } echo $result;?>
Comments
