Hi all,
I've been reading up on fopen() as I want to try and retrieve a webpage and then, using string manipulation, extract parts of it and insert them into a database.
My initial tests with the function are a little odd (but this may be down to an incorrect assumption on my part)
Running the following simple code: -
<?
$website = fopen ("http://www.anysite.com/", "r");
echo ("$website");
?>
Results in the string 'Resource id #1' being returned to the screen.
Is this normal? I was sort of expecting to get the html source printed to the screen.
TIA
Chris