How send html with mail in PHP

Just copy this code and paste it in your page. <?php $subject=”testing purpose only”; $recipient=”your mail here”; $email_from =”From mail here”; $headers =”From: $email_from \r\nMIME-Version: 1.0\r\nContent-type:text/html;charset=iso-8859-1″; // Registration Mail $msg=”<table width=’607′ border=’0′ align=’center’ cellpadding=’0′ cellspacing=’0′ style=’width:607px; border:1px solid #aaaaaa; padding:5px; height:auto;’> <tr> <td><table width=’596′ border=’0′ align=’center’ cellpadding=’0′ cellspacing=’0′> <tr> <td style=’padding:12px; font-family:Arial, Helvetica, sans-serif; font-size:12px; …

Change Time Zone on your site with htaccess file

In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code: php_value date.timezone “Europe/Istanbul” or php_value date.timezone “America/Chicago” You can test date is change or not <?php echo date(‘d-m-Y H:i:s’); …

How close current window tab in all browsers using javascript

Some browsers will not allow you to close the window using window.close() unless the script opened the window. This is a little annoying sometimes. But there is a workaround to resolve this issue. If you observe the error message that is thrown by Mozilla Firefox, “Scripts may not close windows that were not opened by …