Backdoor WordPress Login Script

I have created this script to allow me to quickly login to clients wordpress installs after they have royally messed things up. For example, some clients have changed their admin password and dont know which email account they have used, so this script allows me to quickly create a new user, login and reset their details without having to muck about with mysql etc. NOTE: to use this script you do actually need to have access to the web server and...

Read More Here >>

PHP Best Practices

I deal with alot of different coders from all walks of life and man, have I seen some nasty code. Its really important when coding in a team that certain practices are followed so that the codebase takes on a readable and easier to work with format. I apply these practices whenever I can and expect anyone working with/form me to do the same. 1. PHP OPEN TAGS Never use shorthand or ASP style PHP start tags. Always use full PHP tags. View/Hide Source...

Read More Here >>

[solved] – Error reloading bind on ns1: rndc: ‘reload’ failed: failure on cpanel dns only setup

Gosh. The last few days when I update a dns record or my cpanel system adds a dns record to my dns cluster I get the following errors: Bind reloading on maggie using rndc zone: [somedomainname.com] Bind reloading on ns1 using rndc zone: [somedomainname.com] Bind reloading on ns1 using rndc Error reloading bind on ns1: rndc: 'reload' failed: failure Bind reloading on ns3 using rndc zone: [somedomainname.com] Bind reloading on ns3 using rndc Error...

Read More Here >>

[SOLVED] post__in just displays all the records in the post type

I have been struggling the last couple of days with a clients wordpress site where he needs to display a list of speakers (assigned to “speaker” post type) onto another post type layout called “company”. The goal is to display a list of speakers on the company profile page. The list of speakers by the way is being held in a custom field with the company profile post type in CSV format like this 235,998,2318 etc. I will not...

Read More Here >>