The right way to read files with PHP

Posted by solrac on Feb 15, 2007 8:20 PM EDT
IBM/developerWorks; By Roger McCoy
Mail this story
Print this story

Review basic file functions, such as fopen, fclose, and feof; learn reading functions, such as fgets, fgetss, and fscanf. And discover functions that process entire files in one or two lines of code.

One of the joys of dealing with modern programming languages like PHP is the amount of options available. PHP could easily steal the Perl motto, "There's more than one way to do it," especially when it comes to file processing. Learn how to use the different file functions of PHP. Review basic file functions, such as fopen, fclose, and feof; learn reading functions, such as fgets, fgetss, and fscanf. And discover functions that process entire files in one or two lines of code.

Full Story

  Nav
» Read more about: Story Type: News Story, Tutorial; Groups: Community, PHP

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.