While working on one of my WordPress sites I stumbled upon the need to customize (reorder) the column order while I was adding new columns on some admin pages. Specifically in my case, the "Manage Posts" and "Manage Pages" pages. I saw people on the coding sites asking how to do it, with no one responding to them, and I was unable to really come up with a simple example by doing a little Google-Fu, so I figured it out on my own and thought I'd share.
All you really need to do is shuffle around the $defaults variable (which is an array). Here's the code:
I need more help with my new Mac! I used to use IIS on my Windows PC to run a photo gallery software package that I could use from anywhere, and registered a domain that I used GoDaddy to point to my home server. I had to setup an SQL server on it, PHP, and everything, so it has it's own database and I've spend many hours adding pictures to it, tagging them, and so on, so I would like to just move this all over to my new Mac as painlessly as possibly. My question is, does a Mac have a built-in web server software like Windows had IIS? And if so, how do I use it?
Nice little PHP function that will generate a completely random password.
/* * The letter l (lowercase L) and the number 1 have been removed, as they can be mistaken for each other */ function createRandomPassword() { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double)microtime()*1000000); $i = 0; $pass = '' ; while ($i <= 7) { $num = rand() % 33; $tmp = substr($chars, $num, 1); $pass = $pass . $tmp; $i++; } return $pass; } // Usage $password = createRandomPassword(); echo "Your random password is: $password";
Recent comments
10 weeks 3 days ago
11 weeks 13 hours ago
15 weeks 5 days ago
15 weeks 5 days ago
24 weeks 6 days ago
43 weeks 5 days ago
44 weeks 20 hours ago
44 weeks 22 hours ago
1 year 32 weeks ago
1 year 32 weeks ago