Original Post
Hey everyone, I have a PHP function that reads in data from a webpage and returns it. However, it's not working right and I don't know why. Here's the source below: Then in my PHP document have $data = loadTemp(2, $dbh); echo "$data"; all it echos out to be is: Resource ID #19. Any one have any ideas? Thanks.
function loadTemp($temp_path, $db)
{
$temp_data = fopen($temp_path, "r");
return $temp_data;
}