PHP Tips one line file read By Steven Rebello on August 19, 2002 In order to avoid the hassle of doing a fopen, fread etc, you can read a file using the following one line: $contents = implode("",@file( $filename ) ); Many may already know this, just thought it would help those who don’t. HTH steven Related Results via Envato Market Related Content Redirecting on Page Not Found (404) Session hijacking Configuring two MySQL servers on the same physical server Generating Printer Friendly Pages Easy way to read database data using fopen() Convert Text into Multidimensional Array Getting Text Area With Click Of a Button Put values to HTML object from PHP variables dynamically load graphic to flash movie…. Use of implode() and explode() in formatting text/keywords used in search