PHP: Lire les lignes d’un fichier

Author:
 
<?php
$fh = fopen('orders.txt','r') or die($php_errormsg);
while (! feof($fh)) {
    $s = fgets($fh,256);
    process_order($s);
}
fclose($fh)                   or die($php_errormsg);
?>
  
  

Leave a Reply

Your email address will not be published. Required fields are marked *


3 − one =