How do I read an entire line into a variable? (lets say that the file is http://www.yahoo.com/index.html)
I need the entire file to be in a single variable... I can't find anything that would do this in the PHP manual.
My current code is:
<?php
$file = readfile("http://www.mydomain.com/myfile.html");
echo $file;
?>
I realized that $file just ended up holding some four-digit number... I need to get the contents of readfile() into a variable for editing.
How can I do this?