Snippet description Snippet class
XHTML-base XHTML
Open image in new window JavaScript
Escape variables PHP
Fread-example PHP
SQL-timestamp to normal date PHP
Remove HTML-tags from string PHP
Formatting MySQL-datetime PHP
on Rollover go to frame Flash
Hiddenable box XHTML / CSS / JS


<?php

  
// Opening file in PHP using the fread-function. File is opened as read-only.

  
$filename ="filename.txt";
  
$filesize filesize($filename);
  
$fp fopen($filename"r");
  while(!
feof($fp))
  {
    
$contents fread($fp1024);
  }
  
fclose($fp);
  echo 
$contents;

?>