Posts

Showing posts from June, 2012

Create RSS feed for php mysql

http://www.carronmedia.com/create-an-rss-feed-with-php/ dont forget to add feed to header!

Connect DB using UNICODE

mysql_query("SET NAMES utf8");  add this line

Joomla + APC + memcached

APC makes good cache. configurations http://php.net/manual/en/apc.configuration.php apc.enabled=1       # default = 1 apc.shm_segments=1  # default = 1 apc.shm_size=128    # default = 30 apc.ttl=7200        # default = 0 apc.user_ttl=7200   # default = 0 apc.num_files_hint=1024  # default = 1000 apc.mmap_file_mask=/tmp/apc.XXXXXX  # default = no value apc.enable_cli=1    # default = 0 and apc.shm_size=256 apc.num_files_hint=10000 apc.user_entries_hint=10000 apc.max_file_size=5M apc.stat=0 dont forget there is apc.php file that shows apc stats. Memcached to install memcached http://dag.wieers.com/rpm/FAQ.php#B2 get dag wieers yum repo, then enable You need to edit the file /etc/yum.repos.d/rpmforge.repo and put "enabled = 1"...

In case of Jquery conflict

Just change $ with  jQuery or  call  var $j = jQuery . noConflict (); $j and replace $ with new $j