PNG fix for IE6 in wordpress


Add the following code in the <head> tag

<?php
header('Content-type: text/x-component');
?>
<style type="text/css">

/*
USAGE:
Copy and paste this one line into your site's CSS stylesheet.
Add comma-separated CSS selectors / element names that have transparent PNGs.
Remember that the path is RELATIVE TO THIS HTML FILE, not the CSS file.
See below for another method of activating the script without adding CSS here.
*/

img, div, input { behavior: url("http://<domain name>/wp-content/themes/<theme name>/iepngfix.htc") }
/*
Here's an example you might use in practice:
img, div.menu, .pngfix, input { behavior: url("/css/iepngfix.htc") }blank
*/

</style>

and download the files

iepngfix.doc

blank.gif

rename the iepngfix.doc to iepngfix.htc and put it on the root of your theme folder.

Generate Random Number in PHP


function refrence_id()
{
    $refrence_id = 'DD'.mt_rand(100000, 999999);
    // check if number already exists in database
    $ref = mysql_query("select count(*) from registration where refrence_id='".$refrence_id."'");
    $refer_no = mysql_fetch_array($ref);
    if($refer_no[0] > 0)
    {
        refrence_id();
    }
    return $refrence_id;
}

$tmpRefID = refrence_id();

Difference between Apache server and IIS server


TechThropist Cyber Security

Apache : The Apache HTTP Server, commonly referred to as Apache is a web server software program notable for playing a key role in the initial growth of the World Wide Web.Apache was the first viable alternative to the Netscape Communications Corporation web server (currently named Oracle iPlanet Web Server). Typically Apache is run on a Unix-like operating system,and was developed for use on Linux. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.

IIS : Internet Information Services (IIS) – formerly called Internet Information Server – is a web server software application and set of feature extension modules created by Microsoft for use with Microsoft Windows. IIS 7.5 supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP. It is an integral part of the Windows Server family of products.

Difference between Apache and IIS :

1…

View original post 265 more words

Firebug Script for IE6


Just write the following line in the head tag of your html.

<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>