| TOTAL: 12 Page: 1 of 1 |
|
PHP Script Tips - Creating Your Own Functions
A collection of 19 tips on creating your own PHP functions. Clear answers are provided with tutorial exercises on defining functions, defining arguments, passing references, returning references, argument default values, etc. Topics included in this collection are: How To Define a User Function? How To Invoke a User Function? How To Return a Value Back to the Function Caller? How To Pass an Argument to a Function? How Variables Are Passed Through Arguments? How To Pass Variables By Refer

| Hits: | 52 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Using serialize to input and output arrays
This function basically turns data., such as arrays into a string that can be ut anywhere, used anyhow etc etc. This string can then be put back (or docoded) to its previous form.

| Hits: | 77 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Object Orient Programming: Creating an Image Class in PHP
In Part four of the Object Oriented tutorial, I share the code I use for my image class. In this class there are 4 function. One to Upload One to Resize One to get a file extenstion and One to resize on the fly In order to use the resize function, you will need the gd 2 library. If you're not sure if you have this, create a php file, and place this code in it.

| Hits: | 151 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Intro To Object: Option Variables
We're going to use the same class and function as in the last tutorial, but these will be slightly modified. We're going to make it where we can do different code based on the variables passed to the function. Again I'll reffer to my db class as an example. you have a function to do select * from table now if you use mysql just a slight bit, you should know this is a very genaric query, what if we want: select * from table where this = '$this' limit 5 or even select distinct(row) from tab

| Hits: | 99 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Building a BBCode Function
Everyone loves BBCode. It’s the cool code to use with the little b tags that makes your text bold and stuff. Well, this tutorial will demonstrate how to do the following: Bold Text, Italic Text, Underlined Text, Images, Cancel Out HTML, Break Lines, Code Boxes, and & to & to add to code validity The code will center around arrays and the str_replace() function. Now arrays are quite simple to use, they are just variables that can hold many different values. They are identified by keys

| Hits: | 83 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Introduction to Functions - Learn how to use PHP functions with this basic guide
Functions. They can be very useful when building a website. On instance for example is a function I use for BBCode. Functions provide easy to use and re-usable pieces of code that you can take advantage of. To start, there is the basic statement to start a function.

| Hits: | 36 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Text & Number Management Functions
This tutorial is written for the average PHP beginner to get a firmer grasp on the world of string management with PHP, including some basic math functions. The content of this tutorial is optimized to include web functionality i.e. stripping HTML tags from a string, converting HTML entities, etc. You will even be taught how to hash strings, going far into the mhash PHP extension library. First up on the agenda: Text length limiting. Text length limiting Text length limiting is a very use

| Hits: | 108 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Beginning Object Oriented Programming in PHP
Object-Oriented Programming (OOP) tutorials are generally bogged down with programming theory and large metaphysical words such as encapsulation, inheritance and abstraction. They attempt to explain things by comparing code samples to microwaves or automobiles, which only serves to confuse the reader more. But even when all the hype and mystique that surrounds OOP has been stripped away, you'll find it is indeed a good thing. I won't list reasons why... I don't want this to be another cookie-

| Hits: | 67 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Function Based PHP
The purpose of this tutorial is to show you the ways I have learned to write my dynamic php sites. Some experienced developers may disagree with my methods or my codeflow, but that's ok. Everyone has their own styles of coding and it's not uncommon for people to develop their own methods. This is the method that works for me. Let's begin. First of all, the most important feature in a php driven website is the ability to layout a theme and then reuse that theme over and over again. If you have

| Hits: | 127 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
GD Library
GD is mainly used for creating images at runtime. You can construct graphs, charts, etc using the data available or create custom images based on requirement. For example you can use GD to display the results of a poll. They are quite handy and can provide easy understanding to users. There is another set of library called the JpGraph, which can be used to construct the charts, pie charts, graphs etc in a simpler manner. In this tutorial we will be dealing only with GD and not with JpGraph.

| Hits: | 56 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Creating and using a timing class
The purpose of this tutorial is to talk about two seperate concepts; profiling and object oriented programming (OOP). In this tutorial we'll create a simple class to allow you to create one or more timers. You can then use these timers to show you how long a script or function takes to run, which can help you determine what portions of your script are eating up the most processing time. This is sometimes referred to as profiling. You can also use timer objects to provide generic timer display in

| Hits: | 48 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |
Introduction to PHP Classes (OOP)
When you start working with PHP, you'll find that there's many common tasks that you constantly have to type the same code for. Some of you may have figured out by now that making those tasks into a function will save you a little bit of time when you want to reuse that code. You simply declare a function and tell that function what information you want it to use by a method similar to this:

| Hits: | 25 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-07 |