0
Exclamation mark (!) at odd places while using php mail fixed
Hey guys, Today one of my reporting tool was having an issue with its mail content. The tool is suppose to give me report for the previous days management processes done by my users.
I have noticed that in the EMAIL content there were some Exclamation...
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...
Get the size of a MySQL database using PHP
This is a simple tutorial that shows how to get the size of the mysql databse using php.
//connect to DB
$objConnect = mysql_connect("localhost","root","") or die("Error Connecting to Database, <hr />Known...
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'...
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]
...
Beautiful Christmas countdown timer complete webpage with css download free
Very good looking and elegant, easy to edit Christmas countdown webpage with css and download it for free.
To change the countdown date open index.html and find the line that contains
austDay = new Date(austDay.getFullYear() + 1, 1 –...
Find out which mode php is running CGI or DSO mode
This script helps you to find out the mode in which your php scripts are running
< ?php
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') {
echo "You are using CGI PHP\n";
} else {
echo "You are not using...
Locking a text file database using php
Usually while using plain text as database we need to take care of lot of things.In that the main point to be always noted is if one request is using the text DB then we need to wait for that request to complete and then move ahead to process...
Check whether url or domain exists using php
This is a very simple script to check whether a website exist or not using php.We will be passing the required url as a query string and get that using $_GET
the URL should look like this
http://www.mydomainfortest.com/testurl.php?myurl=http://mistonline.in
Save...
Extract domain name from url using php
parse_url is a built in php function which can be used to parse url and get the type of request like whether its http or https or ftp, gives the domain name like www.google.com and path and the query.
below is the sample code
< ?php
$url...
Simple message slideshow news ticker using javascript
A simple message ticker in which each message is associated with a unique URL, and clicking the button will take the surfer to a different URL.
<form name="slideshow"><div align="center"><center><p><b>
Update</b><br...
How to use Namespaces in php 5.3 ?
How would you differentiate if the call save() was to save a blogs or save comments? The solution was to use blog_save() or comment_save() before the introduction of classes in which we could write the save() function within the Blog class or...
