hi every one i want to create a program like google cache or yahoo cache. so i need a function in php to save content of a specific page. i kinow that php has a function for this . some thing like ob_get_contents(); thank you .
Read up on the following.. http://us3.php.net/curl http://us.php.net/fopen http://us3.php.net/fwrite http://us2.php.net/fclose
ob_get_contents() is for output buffering and not related to what you want. The easiest way to get the text of a web page is with file_get_contents(). Once you have the text in a string you can save it to a file or to your db.