Location: PHPKode > projects > QuickSkin > QuickSkin_v5.0/_lib/qx/qx_load_file.php
<?php
  /**
  * QuickSkin Extension load_file
  * Print out file content
  *
  * Usage Example:
  * External Content Source (counter.txt):
  *
  *     1234
  *
  * Template:
  *
  *     You are visitor No: {load_file:"counter.txt"}
  *
  * Result:
  *
  *     You are visitor No: 1234
  *
  * @author Andy Prevost hide@address.com - original by Philipp v. Criegern hide@address.com
  */
  function qx_load_file ( $filename ) {
    if (is_file($filename)) {
      if($hd = @fopen($filename, 'r')) {
        $content  =  fread($hd, filesize($filename));
        fclose($hd);
        return $content;
      }
    }
  }

?>
Return current item: QuickSkin