PHP code samples
Free php code example (code source). Useful classes like paging, Sql Wrapper, regular expressions, Backpropagation in php, and many other useful scripts.
Simple php recursive function to loop throgh all categories in a hierachical relantionship database.
A simple class to encrypt-decrypt strings
A demostration of a multilayer neural network with backpropagation.
Use the PHP class XMLReader to parse an XML file and read elements and attributes
Chaos Theory and Lorentz attractors: check out for this graphic representation of Lorentz attractor using PHP.
A demostration of a multilayer neural network with backpropagation to solve the multiplication table problem. Preprocessing data by normalizing with min-max formulas.
PHP Script that demons,trate the Padovan sequence
Export data to an CSV file and output to browser
A function to calculate the number of days between two dates
A simple class to handle database operations when you don't have PDO. It uses Singleton to handle an unique database connection.
Regular expresions with arrays
Print a dynamic table with fields names in the header from any MySQL query.
How to find XML nodes and attributes by name with PHP SimpleXML traversing recursively an xml file
Have you ever had need of a simple paging class? A class to page database records.
Simple but efficient!
See email validation sample with the function preg_match
To truncate a number to two decimal places without rounding. Try this:
Why session variables are lost when redirecting to an url using the header function?
How to get the best colors in emacs console mode?
Installing Apache 2.2.4, PHP 5.2.4, and MySQL 5.0.45
Or easy Steps to have WAMP in your windows server. (Tested on Windows XP)
When migrating from php 4 to php 5 the session values are lost from one page to other
Here is a very simple way to export your data into an excel file. No need to write .xsl files, nothing really, just create plain html.