Hi,
Is there a PHP function that can read the HTML code that is process by a PHP script into a database field?
In other words, let's say I have this file saved as before.php:
<?php
$sometext = "hello there";
echo $sometext;
?>
The processed HTML code will be:
<html>
<body>
hello there
</body>
</html>
How can I get the processed HTML into a mySQL field?
<?php
$webpage = "http://www.180plus.com/index.php";
$fp = fopen($webpage,"r");
$page_data ="";
while (!feof($fp)) {
$page_data .= fgets($fp,1000);
}
fclose($fp);
?>
I've been using the above code to read the file from my server, but I have no idea how to capture the actual HTML and store it in a variable, only the raw PHP. Let me know if you need clarification of my question :-)
Thanks from a newbie!!
Jerry Loch
jerry@180plus.com