How to Update Twitter Timeline Using PHP

Guide on this article can be used to post Twitter using PHP. First of all, download source code from http://phpfashion.com/twitter-for-php. Extract downloaded file to your folder. Example: /public_html/twitter-php/. Then we create index.php file with the following code: The first line is to setup variables: username, password, and message. And the next part is to setup…

Read More

True Type Fonts in FreeBSD

This is tutorial how to install true type font in FreeBSD. Load  freetype module in  /etc/X11/xorg.conf file inside “Module” section: Load “freetype” And then, create folder for True Type Font (.ttf). It has default location in /usr/local/lib/X11/fonts/TTF. Copy all .ttf files to this folder (some files have Microsoft license, it is not legal to copy). Create fonts.dir…

Read More

How to Upgrade EHCP 0.30.4 to 0.30.6

Download version 0.30.6 from this link. # cd /root # wget http://sourceforge.net/projects/ehcp/files/ehcp_yeni.tgz/download Extract the file Backup current EHCP # copy -R /var/www/new/ehcp /root/backup_ehcp Copy new EHCP # copy -R /root/ehcp /var/www/new/ Copy config.php from backup # cp /root/backup_ehcp/config.php /var/www/new/ehcp Open browser and go to http://your_ip and login to EHCP. If you have logged in already,…

Read More
mysql.ini

How to Fix PHP Warning: Module already loaded in Unknown on line 0 on Ubuntu

I received email from cronjob saying that there was PHP module already loaded: PHP Warning:  Module ‘mysql’ already loaded in Unknown on line 0 This warning happens when there is PHP extension loaded more than once. To fix this problem, check /etc/php5/apache2/php.ini file and the corresponding module configuration file in /etc/php5/conf.d/. For mysql module, I…

Read More