Migrate a site to another server
13
For those times you need to do a loop in PHP, but have the outcome be in descending order (ie, start at 10 and end at 1).
4
Use the below in SSH to move a MySQL database between servers. Super handy if the database is larger than 7MB and you can't use phpMyAdmin.
2
Insert the below code just below the opening search form tags to restrict the search to a member's own posts if they are not a Super Admin.
10
The below code will generate a form dropdown for all the days of the month, with today's day selected. Handy for those date pickers!
11
The below code will generate a form dropdown for all 12 months, with the current month selected. Handy for those date pickers!
6
This adds your ssh public key to the authorized_keys on a remote server. The key file in the snippet is called id_dsa.pub, yours may have another name but this is standard for DSA encryption.
To learn more about ssh I heartly recommend this: SSH tips and tricks
To learn more about ssh I heartly recommend this: SSH tips and tricks









