The post Canada Provinces & Territories CSV & Drop Down appeared first on Revolved Media.
]]>
Alberta, British Columbia, Manitoba, New Brunswick, Newfoundland and Labrador, Nova Scotia, Ontario, Prince Edward Island, Quebec, Saskatchewan, Northwest Territories, Nunavut, Yukon
Here is the source code for a drop down/select menu.
<select> <option value="AB">Alberta</option> <option value="BC">British Columbia</option> <option value="MB">Manitoba</option> <option value="NB">New Brunswick</option> <option value="NL">Newfoundland and Labrador</option> <option value="NS">Nova Scotia</option> <option value="ON">Ontario</option> <option value="PE">Prince Edward Island</option> <option value="QC">Quebec</option> <option value="SK">Saskatchewan</option> <option value="NT">Northwest Territories</option> <option value="NU">Nunavut</option> <option value="YT">Yukon</option> </select>
Quick little snippet of code I end up typing or using frequently. Hope I can save you a little time.
The post Canada Provinces & Territories CSV & Drop Down appeared first on Revolved Media.
]]>The post Optimize All MySQL Tables Command appeared first on Revolved Media.
]]>——– Recommendations —————————————————–
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
mysqlcheck -Ao
Defragmenting and optimizing your sql tables is easy. You now have a slightly faster database.
The post Optimize All MySQL Tables Command appeared first on Revolved Media.
]]>The post Backup & Restore cPanel / WHM accounts via SSH appeared first on Revolved Media.
]]>cPanel / WHM comes with a powerful backup and restore feature. Let’s learn how to use this feature via command-line / SSH.
Aside: cPanel / WHM has a wide variety of [scripts][1] that can achieve your end goal. These scripts are located in /scripts/.
Backing up a singular account is easy. Simply issue the following command to backup a cPanel account named ‘drewsymo’:
/scripts/pkgacct drewsymo
This particular script, ‘pkgacct‘ generates a ‘cpmove‘ .tar.gz file. This file will be stored in the home directory of your server, i.e:
/home/cpmove-drewsymo.tar.gz
Restoring an account from a ‘cpmove’ or auto-generated cPanel backup file is just as easy as backing one up.
To restore a ‘cpmove’ file, you will firstly need to make sure that the account is terminated:
/scripts/killacct drewsymo
Now, you can initiate a complete account restoration via the ‘restorepkg’ command:
/scripts/restorepkg drewsymo
Note: the ‘cpmove’ file will need to be moved to the /home/ directory in order to initiate the above command successfully.
The latter command can be used to restore a generic auto-generated cPanel backup file (this will overwrite existing files if the account already exists and is generally not recommended)
If you would like to backup all accounts on a cPanel / WHM server, simply issue the following command:
/scripts/cpbackup
The post Backup & Restore cPanel / WHM accounts via SSH appeared first on Revolved Media.
]]>The post Bad URI or cross-site access not allowed appeared first on Revolved Media.
]]>After a quick Google search I was able to find a solution that solved my issue. Hope this can help someone else.
Add the following to your .htaccess
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Happy WordPress Blogging!
The post Bad URI or cross-site access not allowed appeared first on Revolved Media.
]]>