[SOLVED] Using mysql_query in WordPress After PHP 5.5

Okay, I am a bit old skool and still use mysql_* and yes I can hear some of you sighing, face palming yourselves and rolling your eyes but I have built thousands of sites over the years, many of you were in diapers when I started and I guess I have been a little slow on the uptake as my code has always been secure and solid, however, yes I realise I need to stop using it because as of PHP 7 it will be removed completely (apparently). My hope is that...

Read More Here >>

[Solved] CTRL + C between Mac and Remote Windows Machine

I use a mac as my main machine, but very often I need to login to remote windows machines using Windows Remote Desktop for Mac to either work on native windows applications or do server tasks. Making the mental switch though between CMD + C and CTRL + C quite often results in errors. So, I have found the solution in the form of a piece of free mac software called “KARABINER” which allows you to switch the keys when you are connected through...

Read More Here >>

[SOLVED] Force SSL and WWW on Sub Domain with .htaccess

I had someone today who was having some issues with their financial site and the SSL cert so I solved the main issue but noticed that visitors could navigate to https://www.{subdomain}.{domain}.com (with www). Ideally, to keep things clean, they need to go to https://{subdomain}.{domain}.com (without www). So after scrambling around for a bit trying various methods I settled on the solution below which you can place in your root .htaccess file and...

Read More Here >>

[SOLVED] – Simple WordPress xmlrpc.php Attack Prevention

Unless you have a decent WAF checking hack attempts on your server, then you are going to succumb to some serious overloading. One of the favourites of hackers and comment spammers is attacking the xmlrpc.php file which comes as standard on your WordPress install. If you are running a server with hundreds of sites, then its not practical to block on each account so you need to do it above the /home directory. Here is a screenshot explaining what happens...

Read More Here >>

[SOLVED] – merge tags issue with gravity forms + blank emails

I came across an issue recently where the merge tags from the admin notifications in Gravity Forms were coming out blank when the email notification arrived to the inbox. Also, the email was not being inserted into the entries section of Gravity Forms. This situation can happen for two reasons: There are some gravity forms table missing in your database Some of the tables in your database are corrupted. If there is table corruption, just whip open...

Read More Here >>
NAVIGATION MENU