With the combined effort of my PHP Array Pagination script and this tutorial you will be able to pagination results (database & non database driven results) and intergrate it easily with the smarty template engine. So, to start download the PHP Pagination script and then put it into a directory within your smarty setup. During [...]
Feb 27 2008
Sorting Arrays
You can sort an array in many different ways using PHP using many different functions, here are a few. sort($array); asort($array); ksort($array); These three different sorting functions all can be sorted in ascending order. The reverse functions are: rsort($array); arsort($array); krsort($array);
Feb 27 2008
Validation
n this day and age and taking into consideration the evolution of the web, allot of things are overlooked when programming and one of the main subjects I see commonly being 223overlooked" is validation. Validation isn't that difficult you just need to question the integrity of every string trying to be parsed, the most common [...]
Feb 27 2008
Files Uploading, Validation
Uploading file is one of the most convenient things to do with PHP. This tutorial will cover how to upload files safely and how to ensure no files are replaced in the process. The first step would be creating your form, this will be a basic HTML form with the attribute encrypt added to it, [...]
Feb 27 2008
Sticky Caps
Ever bothered thinking about how to make your site stand out a little more? I was think about this a while back and what came to mind was sTicKy cApS, i think that's the terminology, well anyway here is the code to create "sticky caps". First of all we need a string to apply this [...]
Feb 27 2008
PHP Array Pagination
This is a very easy to install pagination class that takes a PHP array and parses it into an array. To install into one of your personal array's start by including the main file and creating the pagination object. <?php include 'pagination.class.php'; $pagination = new pagination; ?> Once this is done, simply do the following [...]
Feb 27 2008
Thumbnails Generator Class
Requires: PHP w/ GD Library Extension. Generating thumbnails couldn't be easier. Download the file on this page and test it out. Simply include the following PHP into the top part of the page, this processes the form and calls the external class and loads it as an object. The following can be produced, all dimensions [...]
Feb 27 2008
Using Arrays
Arrays are one of the most used properties in php, arrays are like a container they are very simple they can can be indentified by a key or a value and the value can also be an array and that's called a multi-dimentional array. Creating an array: <? $myArray = array("Value1", "Value2"); ?> By default [...]