DZone 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
Read A File Or An URL To A String In PHP
Simply do this:
$string = implode('',file($pathToFileOrUrl));





Comments
Snippets Manager replied on Mon, 2012/05/07 - 2:14pm
Snippets Manager replied on Mon, 2012/05/07 - 2:14pm