PHP: Ouvrir un fichier et lire son contenu

 
' . $info[1] ." ";
        }
    }
    if (! fclose($fh)) {
        print "Error closing people.txt: $php_errormsg";
    }
}
?>
//data.txt
a@example.com|Alice
b@example.org|Bill
c@example.com|Charlie
d@example.com|Lewis
  
  

PHP: Classe personalisé pour traiter un fichier

 of constants for ease of use. 
    const FOUNDERROR = "Sorry, the file in question does not exist."; 
    const PERMERROR = "Sorry, you do not have the proper