| TOTAL: 157 Page: 1 of 8 |
|
PHP Debugging with Zend Studio
Web developers who wish to use their time as efficiently as possible, should consider using an integrated development environment (IDE), if they are not already doing so. Just as the name suggests, a typical IDE provides the developer with an integrated suite of programming products, including an editor with multi-file editing, multiple undo and redo, local and global search and replace, stream and paragraph text selection, code-folding, multi-line tabbing, automatic creation and coloring of mat

| Hits: | 9 | Platforms: | Linux |
| Ratings: | Last Updated: | 2008-02-13 |
[PHP] Str_Replace - Find and replace.
This will teach the "str_replace" function in PHP. We shall use this to replace a word, with another in a string of text. Let's make our string.

| Hits: | 51 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Remove OBJECT code using PHP - Using PHP to remove OBJECT code and replace it
Someone had asked me if it was possible to strip out object code (usually seen in flash enabled sites) using PHP. I told him it is possible and a regular expression would be needed. He thenasked if I could write up an example because he was a novice in regex, so I did. Now I am publishing it for everyone to get use of. :).

| Hits: | 126 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Custom Error Handler - How to create a custom error handler in PHP
Have you ever wanted to create a custom error handler in PHP to replace the standard output to the browser? Well this is how you do it. First you set up the error handler to replace the normal one, and set the ini values.

| Hits: | 168 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Simple Way to Validate Links - Validate url's before you accept them
This simple little function checks a link for the correct http://. This could be taken a step further and checked against a series of proper protocals (http, ftp, feed) etc... Most of the magic is done in the preg_match function. We check for an http://, but must escape certain characters within this function so we use \ to escape the forward slashes /. That all thats too this function, if you have some ideas or possible expansions. Let me know, maybe they could be added to this tutorial.

| Hits: | 146 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
PHP Garbage Collection Process - Learn what it is and what it does!
PHP Sessions are a great way to save data across different pages on a web site. They are a great alternative to cookies and since PHP offers numerous different functions to deal with sessions, it is also much easier and simpler. Those of us that are familiar with sessions know that for each session, a unique file is created on the web server. Over time these files accumulate. Fortunately for us PHP has something called Garbage Collection, in which at random, PHP analyzes which session files h

| Hits: | 71 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Database backups using cPanel and CRON
It sucks to visit your site and find it hacked or maybe a extremely rare, but deadly technical glitch happened on the server. This only sucks when you don't have a backup of your database, but it's actually very easy to do. We're going to use cPanel's database backup tools to make a CRON based backup script that will send us, as an attachment, a backup of our database via E-Mail. This actually isn't that hard to do, the hardest part was figuring out how to send attachments with PHP's mail() f

| Hits: | 126 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Rewritten URLs with unlimited parameters.
I recently added a function to my commercial PHP framework which allows unlimited parameters in a mod_rewrite rewritten URL, without having to add more lines to do so. In this tutorial I will explain to you how to create this function and use it. Table of Content: 1. mod_rewrite: what is it and how to use it 2. Unlimited parameters 1. mod_rewrite: What is it & how to use it mod_rewrite is an apache module that allows you to rewrite URLs on the fly. You can create redirects with i

| Hits: | 132 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
View Source Code Page - Write a script that displays the source code of a given
This tutorial will show you how to take a URL, read in the source CODE and then format it. The code listed will assume that you are passing the URL as an encoded variable via GET with the name u. First off here are the CSS styles you'll need to format the code (you should customise these to suit your needs):

| Hits: | 167 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Serializing arrays for storage in a database or file
Arrays are sets of data. It's very useful to be able to store that data, along with it's keys, in a database or file, but the hard part is how to transform the array into a string. An easy solution is serialize() and unserialize(). These two functions handle transforming an array into a string and back into an array. The functions also work on objects.

| Hits: | 107 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Using mod_rewrite with Apache and PHP
Mod_rewrite is a popular Apache Module which gives a server administrator the ability to mask a web site's links. Though mod_rewrite has several abilities and can be used in several ways, the only way focused on by this tutorial is to create Search Engine Friendly links. This tutorial is divided into several sections to help you get started quickly. If you do not have access to your Apache Configuration file or you do not know what an Apache Configuration file is, you should skip the first se

| Hits: | 198 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
PHP 101 Part 3 - Looping The Loop!
If you've been paying attention, you remember that, last time, I gave you a quick crash course in PHP's basic control structures and operators. I also showed you how PHP can be used to process the data entered into a Web form. In this tutorial, I'm going to delve deeper into PHP's operators and control structures, showing you two new operators, an alternative to the if-else() family of conditional statements, and some of PHP's more interesting loops. So keep reading... this is just about to get

| Hits: | 33 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 12 - Advanced Loops
we have had a little more practice with control structures I want to introduce the last ones to you. They are "Do while", "switch", "while", "elseif", and "for". First lets start with "switch".

| Hits: | 16 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 9 - Loops and POST
we are going to make a page that is TOTALY dynamic and will only display something after a condition is met. But first I want to do a small warn-up exercise to get you thinking in loops! lol. Open up your text editor and type the following PHP code into it:

| Hits: | 20 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 8 - Control Structures 2
Now that you understand "IF" lets look at some other control structures - "else", "elseif", and "while". (The good thing about PHP is that you can kind of guess what each function or control structure does just by looking at its name).Lets start with "else". "Often you'd want to execute a statement if a certain condition is met, and a different statement if the condition is NOT met. This is what else is for. else extends an if statement to execute a statement in case the expression in the if

| Hits: | 17 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 7 - Control Structures
we will go over simple control structures. You can think of them as "forks in the road" of your code. Depinding on whether the control structures are true or false will determine what your code does next. Here is a simple example of a control structure.

| Hits: | 30 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 5 - GET and POST
One of the most powerful features of Dynamic Coding is the ability to pass values to new pages! You may have seen a URL like this before.

| Hits: | 68 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
LearnPHPFree.com Lesson 3 - Strings
Strings in PHP could be thought of as sentences such as: "I went to the store". Strings differ from variables in that they are a COLLECTION of values in one variable.

| Hits: | 23 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Conversion into roman numbers
In this tutorial we’ll see how to convert a number into roman numbers. To reach our goal we’ll use a function built up for our purpose. If you don’t know what a function is I suggest to read the first part of this tutorial published on this site too. Our function will be call roman_number(), and will work just with one parameter $number. The variable that stores the value in roman numbers is called $roman The following table reassumes roman numbers chars and values compared with our

| Hits: | 124 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |
Conversion into roman numbers
In this tutorial we’ll see how to convert a number into roman numbers. To reach our goal we’ll use a function built up for our purpose. If you don’t know what a function is I suggest to read the first part of this tutorial published on this site too. Our function will be call roman_number(), and will work just with one parameter $number. The variable that stores the value in roman numbers is called $roman The following table reassumes roman numbers chars and values compared with our

| Hits: | 102 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-08 |