Reading and Writing .gz files in PHP
The zlib extension contains versions of many file-access functions, such as fopen(), fread(), and fwrite() (called gzopen(), gzread(), gzwrite(), etc.) that transparently compress
Read tutorialTHE TUTORIAL LIBRARY
The zlib extension contains versions of many file-access functions, such as fopen(), fread(), and fwrite() (called gzopen(), gzread(), gzwrite(), etc.) that transparently compress
Read tutorialThe function parse_ini_file() reads configuration files structured like PHP's main php.ini file. Instead of applying the settings in the configuration file to PHP's configuration,
Read tutorialProcessing every word proceeds differently depending on how "word" is defined. The code in this recipe uses the Perl-compatible regular-expression engine's \s whitespace metacharac
Read tutorialYou want to count the number of lines, paragraphs, or records in a file.To count lines, use fgets(). Because it reads a line at a time, you can count the number of times it's calle
Read tutorialYou want to load the entire contents of a file into a variable. For example, you want to determine if the text in a file matches a regular expression. Use filesize()to get the size
Read tutorialWhen fopen() is passed a filename that begins with http://, it retrieves the given page with an HTTP/1.0 GET request (although a Host: header is also passed along to deal with virt
Read tutorialThe first argument to fopen()is the file to open; the second argument is the mode to open the file in. The mode specifies what operations can be performed on the file (reading and/
Read tutorialEvent-driven programming responds to events. An event is generated (or raised) when "something happens," such as the user pressing a button. Often, events are generated by user act
Read tutorialThis is an extract from the book, EJB 3 Developer Guide from the 3rd Chapter on Entities published by PACKT publishing. Entities are classes that need to be persisted; their state
Read tutorialIf you are new to programming or if you are choosing to extend your programming skills to new languages, learning both Visual Basic .NET and Visual C# is a practical goal. This is
Read tutorialASP.NET is the platform that you use to create Web applications and Web services that run under IIS. ASP.NET is not the only way to create a Web application. Other technologies, no
Read tutorialASP.NET has many advantages over other platforms when it comes to creating Web applications. Probably the most significant advantage is its integration with the Windows server and
Read tutorialOne example today. A better developer tomorrow.