Books & Music
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
News & Politics
Religion & Spirituality
Travel & Culture
TV & Movies
Here are the top ten articles for the PHP Site! These rankings are live and get reset at the beginning of each month, so check back often to see what your fellow visitors are most interested in!
1. How To Increment and Decrement In PHP
One of the most frequently used code in PHP or any programming language is the code that will increment or decrement the value of a variable. This code or expression is used in programs as simple as a page counter or as complicated as credit card processing.
2. Book Review – Object-Oriented PHP, Concepts, Techniques and Code by Peter Lavin
Object-Oriented PHP by Peter Lavin is a good book for any traditional/procedural PHP programmer who wants to switch to object-oriented PHP and also for programmers who want to switch from PHP 4 to PHP 5.
3. The PHP fread( ), filesize( ) and file_get_contents( ) Functions
We will use the fread( ), filesize( ) and file_get_contents( ) functions to read the contents of a file into a string.
4. Book Review – PHPEclipse A User Guide by Shu-Wai Chow
This book by Shu-Wai Chow will show you how to install, setup and use PHPEclipse which is a popular open source IDE (integrated development environment) for PHP programmers.
5. How To Reference A PHP Variable
This tutorial will show you how to allow a function to change a variable that is not part of the function. You can reference, or point to, the original variable when you pass an argument to the function. By doing this, you can manipulate the value of the original variable from within the function.
6. The PHP Mktime Function
You can use PHP to easily find the current, local time and date but you do not always want to work with the current or actual time. In many cases, you will need to work with a specific, arbitrary date and time. To work with this specific time and date, you first use the built-in PHP mktime function.
7. How to Connect to the MySQL Server with the PHP mysql_connect Function
When you are ready to work with the MySQL database in your PHP programs, the first thing you must do is connect to (or identify yourself to) the MySQL server. Here is the PHP function you will use to open a connection to the MySQL server.
8. The PHP Break Statement
The PHP break statement is placed within the code of a loop statement to cause your program to break out of the loop statement. Below is an example of a break statement that has been added to a loop statement.
9. PHP Superglobal Variables and Register_Globals
PHP has a special kind of variable which is called a superglobal. The reason these variables are special is because they are automatically available to any PHP program without the programmer creating or defining them in his program. You can think of them as built-in variables.
10. An Introduction to phpMyAdmin for Databases
Once you are ready to use a database in your PHP programs, you have a few options available to you for creating and working with databases. You can write your own PHP programs that will set up the database and its tables or you can use a prewritten program such as phpMyAdmin.
Be sure to visit the PHP Archives for all the articles!
Website copyright © 2016 Minerva WebWorks LLC. All rights reserved.