[Tutorial] Detailed Guide to fwrite() Operations

In this tutorial I will be deeply explaining in detail the many modes of the PHP function fwrite().  Yes, fwrite() is used to write data to files, however the way it is written to the file changes with each mode.  In each mode, I will explain its purpose, provide an example, and then explain the code within the example. Continue reading

[Tutorial] Create A Generated Random Password

In this tutorial, I will show you how simple it is to generate a random password. First off, I would like to clarify that this method is not limited to just the generation of random passwords, but it can also be used to generate a random string for other purposes.

To keep things simple, we are going to create a function that allows you to generate your random password without cluttering your existing code with extra lines.  I am going to split this tutorial in to two different segments.  The first segment will be a basic method that allows the developer to define the length of the string.  The second segment will be a more advanced method that allows the developer to define the length as well as the complexity of the string. Continue reading

[Tutorial] Simple SVN Commands Using PHP

In this tutorial I will be demonstrating the ability to operate some basic functions of Subversion (SVN), a popular version control system, through PHP commands.  If you have not used SVN before, I highly suggest you become comfortable with some of the simple commands such as “checkout” and “update” as this tutorial will heavily rely on those two commands.  A free online book has been published by O’Reilly Media that gives a complete documentation of SVN. Continue reading