Hi All,
I'd just like to know if it is possible to use fread to read the html content of a serverside coded page....as in something like this:
In theory yes, but if you want to read the html content after php processing you should use:
$filename = "http://localhost/path/to/something.php";
PHP Streams will do the rest.
Regards
Edoardo Serra
<?php $filename = "/usr/local/something.php"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); ?>
---------------------------------
A passion till tomorrow, Opeyemi Obembe | ng.clawz.com
--------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php