Many times it happens that you click a great picture, but it gets spoiled because of any unwanted object, person, text, or something else. If you want to remove the unwanted and fix the picture you just have to do one thing, search for cleanup.pictures, upload your picture, select the unwanted and you will get rid...
Remove pagination from WordPress Search page
To remove the pagination from wordpress search page, add the following script in your theme’s functions.php file: function no_nopaging($query) { $query->set('nopaging', 1); } add_action('parse_query', 'no_nopaging'); And you are done!
How to detect bots in a server side script like PHP
Humans and bots will do similar things, but bots will do things that humans don’t. Let’s try to identify those things. Before we look at behavior, let’s accept RayQuang’s comment as being useful. If a visitor has a bot’s user-agent string, it’s probably a bot. I can’t image anybody going around with “Google Crawler” (or...
Generate SPF Record
SPF records are required for the EMail address verification by most of the email servers now a days. To help you generate the correct SPF record for your domain, you can use the below SPF record generator: http://www.royhochstenbach.com/projects/spfgenerator/
Adding mssql support in php5 on Debian or Ubuntu
To add/install MSSQL support in PHP5 on Debian linux server, follow the below steps: Install FreeTDS and the PHP MS SQL extension sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase Note: That is correct, the MS SQL extension is in the “php5-sybase” package. Restart Apache sudo /etc/init.d/apache2 restart If everything went fine then you will be...
Cakephp preventing ARO to check for user permissions
In cakephp most of us use ACL with Auth component to manage logins and access to various pages. When we need to implement this feature based on User Roles only. Sometimes the ARO checking gives error – that the User not exist for the foreign key. This is because if the role does not have...
Uploading files to FTP server from PHP Script
For one of my project I was required to upload files on an FTP server from the PHP script. Searching on Google I found code required but it was not completely available at one place. So I thought to share this here for use by others as tried and tested code, working on a live...
Type in your language using Microsoft Indic Language Input tool
Though most of my work involves use of English as primary language, my mother tongue is Hindi. So when I want to write blog posts or some other personal communication with my closed friends, sometimes I feel the need to be able to type in Hindi. Earlier I was using Google Transliterate tool, but that...
Fix Error 0x80070424 on windows
Recently while visiting a website I got infected by Live Security Platinum malware which disabled all security services on my PC. I was able to remove this using the free Malware Bytes Anti spyware tool. But the Windows firewall and McAfee firewall were unable to run due to some bugs made in the windows. As...
Configuring Horde Vacation Responder in Plesk 9
Today I had to work on the Plesk server webmail vacation responder settings, and looking at the Horde webmail option I found that this is not available in the default Horde Install in Plesk 9. Digging through many google search pages and search phrases I found a very useful and working link given below. Configuring...