Over on Zend this morning, there's a new tutorial posted for all of you out there that are wanting to use PHP to make files (or just work with them for that matter) on your server. File Creation and Editing with Filesystem Functions introduces you to the wonderful world of the filesystem functions, as well as reminding you about some common mistakes that some programmers just forget about (like file permissions).
They show you what needs to be changed in your PHP.ini file to make the fopen stuff work for URLs (this can be pretty cool, used to open a remote file like it was a local one), and how to take those first steps into making a sample file on your server.
Of course, what would an article from Zend be without some examples, so they show you two things - how to make a simple hit counter for your site, and how to make a CSV file (one that can be used in Excel) from data in a database.




