Tuesday, 24 June 2014

Remove fraud detection checks in hotmail and gmail

Remove Be careful! This sender failed our fraud detection checks in hotmail and gmail
--------------------------------------------------------------------------------------------------------------------
Iam using hotmail Apps (or) Google Apps as my email server, But iam sending  mails from Server 192.168.0.2 using PHP Mailer.All the mails sent from 192.168.0.2 are going to SPAM folder (or) Be careful! This sender failed our fraud detection checks message is coming

Step1: Select Remote Mail Exchanger in -->MX Entry Maintenance-->Email Routing

Step2: Add SPF records for PHP Mailer Server and googleapps/hotmail/outlook like below

Add SPF record for hotmail/outlook

Name: websitename.com
TTL:28800
Type:TXT
TXT Data:"v=spf1 ip4:192.168.0.2 include:hotmail.com ~all"

Add SPF record for google apps

Name: websitename.com
TTL:28800
Type:TXT
TXT Data:"v=spf1 ip4:192.168.0.2 include:_spf.google.com ~all"

Thursday, 22 May 2014

How extract years, months, days, hours, minutes, seconds from a date

 How to Split years, months, days, hours, minutes, seconds from a date
-------------------------------------------------------------------------------------------------------
$time = strtotime($prdt);
echo date('Y', $time);
echo "-";
echo date('m', $time);
echo "-";
echo date('d', $time);
echo "-";
echo date('h', $time);
echo "-";
echo date('i', $time);
echo "-";
echo date('s', $time);

Reference:
http://www.tizag.com/phpT/phpdate.php

Tuesday, 29 April 2014

change database upload size in wamp

change database upload size in wamp

Go to  C:\wamp\bin\apache\apache2.2.8\bin\php.ini

(or)

Click on WAMP --> Select PHP -->Select PHP.INI


Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M

Then restart wamp to take effect

Friday, 25 April 2014

wamp 500 internal server error .htaccess

Enable below modules on WAMP Server

Enable Apache -> Apache modules -> rewrite_module
Enable Apache -> Apache modules -> headers_module

Reference:
http://www.steptoinstall.com/wamp-500-internal-server-error-htaccess-php-codeigniter.html

Wamp Server as LAN or WAN

 How to make Wamp server in windows 2008 as LAN or WAN

Step1:
Go to D:\\wamp\bin\apache\Apache2.4.4\conf
open httpd.conf

Find below code:

<Directory "D:/wamp/www">
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost
</Directory>

Replace with below code:

<Directory "D:/wamp/www">
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost
     Allow from all
</Directory>

With above settings you can access http://localhost as http://192.168.0.2 in Client Machine

How to make PHPMyAdmin as LAN or WAN

Go to D:\\wamp\alias
Open phpmyadmin.conf file

Find the below code :

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
 
Replace With:

Order Allow,Deny 
Allow from all
 
Do the above Setting for SQLBUDDY,WEBGRIND
 
References:

 http://www.logicspot.com/technology/viewing-a-locally-hosted-website-with-your-smartphone/

 http://superuser.com/questions/432794/how-to-allow-remote-access-to-my-wamp-server

 http://manikandan-sysadmin.blogspot.in/2013/05/how-to-access-wamp-server-in-lan-or-wan.html

 http://www.bulletprooftemplates.com/how-to-install-wamp-20

 http://www.codeproject.com/Tips/395286/How-to-Access-WAMP-Server-in-LAN-or-WAN
 
 http://techtutorial467.blogspot.in/2013/07/how-to-access-wamp-server-in-lan-or-wan.html

 http://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp

 http://superuser.com/questions/432794/how-to-allow-remote-access-to-my-wamp-server