help with file_get_contents php scripting

Hi Im trying to get my emoncms data and upload to pvoutput and so im using a script found on these forums but I couldn't get it to work.  After some troubleshooting i have found that the file_get_contents command is not working in my script.  I keep getting a false error returned.

Below is a test script i am using to troubleshoot can anyone shed any light on how to get this to work?

<?php
   echo file_get_contents("http://emoncms.org/feed/value.json?id=63703");
?>

Thanks.

nihonjin's picture

Re: help with file_get_contents php scripting

Has anyone got any ideas as im still stuck on this.

 

thanks.

Paul Reed's picture

Re: help with file_get_contents php scripting

Are you using this script? as other members have found this to work OK.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.