Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

david blanchet slim.climaxdesigns.com

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Read text or html file

function readUrl($url) {
        $handle = fopen($url, "r");
        $contents = '';
        while (!feof($handle)) {
                $contents .= fread($handle, 8192);
        }
        fclose($handle);
        return $contents;     
}
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed