- Free Delta
- PHP code samples
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.
Artificial Intelligence Neural Network Backpropagation
A demostration of a multilayer neural network with backpropagation.
Image demonstrating Lorentz attractor
Chaos Theory and Lorentz attractors: check out for this graphic representation of Lorentz attractor using PHP.
Artificial Intelligence to solve the multiplication table
A demostration of a multilayer neural network with backpropagation to solve the multiplication table problem. Preprocessing data by normalizing with min-max formulas.
Array replace patterns
Regular expresions with arrays
Get MySQL Field Names From Query with PHP
Print a dynamic table with fields names in the header from any MySQL query.
Find XML Nodes and Attributes with PHP SimpleXML Recursive Functions
How to find XML nodes and attributes by name with PHP SimpleXML traversing recursively an xml file
A Paging Class
Have you ever had need of a simple paging class? A class to page database records.
Simple but efficient!
Regular Expressions
See email validation sample with the function preg_match
Truncate decimals without rounding
To truncate a number to two decimal places without rounding. Try this:
((int)($myNumber*100)/100)
PHP MySQL Recursive Function
Simple php recursive function to loop throgh all categories in a hierachical relantionship database.
Session variables lost
Why session variables are lost when redirecting to an url using the header function?
Emacs on a Linux Console
How to get the best colors in emacs console mode?
Installing Apache,PHP 5, and MySQL 5 for Windows
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)
PHP5 and Sessions
When migrating from php 4 to php 5 the session values are lost from one page to other
Php Export Excel made simple
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.
Encrypting string with PHP using mcrypt
A simple class to encrypt-decrypt strings
Parsing XML elements and attributes with PHP
Use the PHP class XMLReader to parse an XML file and read elements and attributes
The Padovan sequence
PHP Script that demons,trate the Padovan sequence
PHP Export CSV made simple
Export data to an CSV file and output to browser
php days between two dates
A function to calculate the number of days between two dates
PHP Sql Wrapper Class
A simple class to handle database operations when you don't have PDO. It uses Singleton to handle an unique database connection.