Facebook Twitter Reset

Captcha using php

This script will show how to create captcha image using php.We have captcha.php, class.simplecaptcha.php,white.png and 3 font files. The file captcha.php contains all the settings on how to change the font , the image file etc., < ?php session_start(); require_once('class.simplecaptcha.php'); /* *****CONFIGURATION...

Find any day before a given date using php

This tutorial will help you in finding any day before a given date using simple php trick.Just look at the code below. The script will take the server date as current day and will negate it against the number of days provided. Here i have given...

Display mysql table using for loop in php

This tutorial will show you how to display mysql tables using for loop instead of while in php. Very simple script just grab it guys. //please dont forget to connect to mysql $objDB = mysql_select_db('my_db'); $qry_acct='SELECT * From My_test_table'; $result_acct=mysql_query($qry_acct)...

Listing the comma seperated data or line using php

This tutorial will show you how to seperate a line that contains comma, semicolon etc and then list it accordingly. Here we are using explode() and also empty(). If there is an empty space between two comma or semicolon then that is automatically...

Get DNS Record using PHP

This is a simple tutorial which will show you how to get the DNS information / lookup of a website using php. < ?php $result = dns_get_record("mistonline.in", DNS_ANY); echo "Result = "; print_r($result); ?> <hr...

FPDF error: Alpha channel not supported error message

FPDF is an open source library for generating PDF files using php. This is one of the best tool available for report generation. Sometimes we will encounter this error When we try to view the PDF file to see an invoice or report. The program...

Lock a text database or file before writing data into it using php

This simple tutorial shows how to lock a text database or file before writing data into it using php, usually when a developer uses text database instead of SQL or MYSQL or DB2 for his website, many will come across issues due to simultaneous...

Detect the user Operating System flavour using php

This code will help you to Detect the operating system [os] used by the user to access your webpage. < ?php function OSflavour($userAgent) { // Create list of operating systems with operating system name as array key $myos = array ( 'iPhone'...

Mysql backup via cron using php and email the file

This script will show you how to take complete website mysql backup via cron using php and email the backup file as attachment. < ?php $datestamp = date("Y-m-d"); // Current date to append to filename of backup file in format...

Add rounded edge or corner images using php

This is a simple tutorial which shows how to add rounded edge or corner for an image using php and gd libraby. < ?php //---------------------------------------------------------------- // Apply Round Corner PHP-GD // Revision 2 [2009-07-01] ...

Simple birthday script using php and mysql

This is another tutorial which shows how to create a birthday script which automatically send wishes to the person on that particualr day using php and mysql.Pretty simple.All you have to do is take care of the DB part and change it according...

Email address validation using php

The below function will valide the email address, Function to validate email address in PHP function validateEmail($email) { if(eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,4}(\.[a-zA-Z]{2,3})?(\.[a-zA-Z]{2,3})?$', $email)) return...

How to run or Configure Apache to use PHP as CGI

To get Apache to use the PHP CGI for files with the .php extension, you need to tell Apache where to find the php-cgi executable, which is installed to /usr/local/bin/php-cgi by default. You also need to give Apache permission to execute files...
Affordable Seo PackagesSeo BlogEdu Backlinks