Phil Leggetter - Real-Time Web Software and Technology Evangelist
How to read a file into a string using PHP
function ReadFile($filename)
{
$fh = fopen($filename, 'r');
$theData = fread($fh, filesize($filename));
fclose($fh);
return $theData;
}
Related posts:
-
http://webreflection.blogspot.com/ Andrea Giammarchi
About Phil Leggetter
My name is Phil Leggetter and I'm a Developer Evangelist at Pusher, a Real-Time Web Software and Technology Evangelist and Consultant, software engineer, team leader, line manager, micropreneur, product developer, Twitter user and a keen user of social media. For more information see the About Phil Leggetter page.
Social
Tags
.NET Ajax API APIs ASP.NET MVC Bing Blogging C# cloud comet Community DataSift Facebook Google Hardware http streaming ian sanders ideas Internet JavaScript Kwwika Life Mapping Microsoft Mobile Phones pubsubhubbub pusher real-time real-time data real-time push real-time web realtime RSS RTRIA Scotland silverlight Social Media Software Development Superfeedr truly real-time truly real-time web Twitter web 2.0 websockets Whinge









