Saturday 22 September 2012

Import CSV file using PHP

PHP script to import a csv file using fgetcsv() and and a simple foreach loop to display the content in a table.

Friday 21 September 2012

Extracting email addresses from a text file using PHP REGEX

This is a simple yet effective way to extract email addresses from a .txt file.

The script reads the text file and then uses a REGEX expression to extract the email addresses from the content of the file.