JavaScript PHP loading data from external URL with nonstandard port loading data from s3 to redshift,loading data from excel

A solar monitoring system generates a page at http://68.37.209.78:8050/ with live performance data. I want to scrape and parse this data, pass the PHP variables to JavaScript variables, which I can feed into HighCharts to make pretty graphs.

So far, I've managed to find out how to use PHP to read an external file, by using file_get_contents() or fopen(). It appears that neither of these functions will work if it's a nonstandard port I'm trying to access, as is the case here. I found an alternative method using cURL():

<?php
$cURL = curl_init('http://68.37.209.78'); //Initialise cURL with the URL to connect to
curl_setopt($cURL, CURLOPT_PORT, 8050); //Set the port to connect to
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 8050); //Get cURL to return the HTML from the curl_exec function
$HTML = curl_exec($cURL); //Execute the request and store the result in $HTML

echo $HTML; //Output the HTML
?>
Answer:1

Here is a table example: <table id="tableId"> <thead> <tr> <th>line number</th> <th>value</th> </tr> </thead> <tbody> <tr&...

Here is a table example: <table id="tableId"> <thead> <tr> <th>line number</th> <th>value</th> </tr> </thead> <tbody> <tr&...

How do you pass something to a function, as if it calls the function? Say I have this function function ShowId() { alert($(this).attr('id')); } and this HTML <div id='div1'> <a class='...

How do you pass something to a function, as if it calls the function? Say I have this function function ShowId() { alert($(this).attr('id')); } and this HTML <div id='div1'> <a class='...

  1. javascript pass jquery object as parameter
  2. javascript pass jquery object to function
  3. javascript function pass jquery
  4. jquery pass javascript variable to php

I am coding with processing.js. I want the size variable to get greater as the cursor (mouse) approches the ellipse and to get smaller as the cursor moves away from the ellipse. The size should (if ...

I am coding with processing.js. I want the size variable to get greater as the cursor (mouse) approches the ellipse and to get smaller as the cursor moves away from the ellipse. The size should (if ...

I have tried these to snippets of codes, the first one works in IE and Chrome, the second one works in Chrome only, but both of them don't work in Firefox. What I want is to stop the page from going ...

I have tried these to snippets of codes, the first one works in IE and Chrome, the second one works in Chrome only, but both of them don't work in Firefox. What I want is to stop the page from going ...