Martin Johansson wrote:

How do I get a html page into a string variable in php?
Isnt there any function working like this:
$homepage = getHtmlPage(;


try this:
$file = file('');
foreach($file as $key => $val){
echo "$val\r\n";
$file will be an array where each index corresponds with a line from the file.

1 => <html>
2 => <head>
3 => <title>blah</title>


Hope that helps
- Tularis

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to