Category Archives: Scripts

PHP script to convert mysql collation

Whenever you have accidentally chose a wrong collation or changed your mind afterward you may use the following script to change the collation (the character set that data are stored) automatically. This is especially useful when for example you want … Continue reading

Posted in Scripts | Tagged , , , , , | Leave a comment

vbulletin 4 make bbcode [code] have syntax highlight like [php]

Goal #1: vbulletin 4 bbcode [code] have syntax highlight like [php] Goal #2: Code wrapped in the [code] and [php] bbcodes to have Consolas as font like StackOverflow The default [code] bbcode of vbulletin doesn't highlight the code which is … Continue reading

Posted in Scripts, Solutions | Tagged , , , , | 23 Comments

Custom default permissions on specific folder

Goal: Any file or directory uploaded / created under a specific folder to have read, write, execute (777) permissions. Environment: CentOS 5.5, Kernel: 2.6.18-194.17.1.el5 I was looking for a solution to have read, write, execute permissions for all since I … Continue reading

Posted in Scripts, Solutions | Tagged , , , | 1 Comment