Daily Archives: December 18, 2011

How to activate curl in xampp?

1. Locate XAMPP install directory 2. open php/php.ini (probably C:\xampp\php\php.ini or C:\ program files\apachefriends\xampp\php\php.ini) 3. do a search for the word ‘curl’ and uncomment (remove the leading semicolon) that line before removing ;extension=php_curl.dll after removing: extension=php_curl.dll 4. save & close 5. open apache/bin/php.ini (probably C:\xampp\apache\php.ini or C:\ program files\apachefriends\xampp\apache\php.ini) … Continue reading

Posted in php

how to add filter for wordpress?

excerpt length is set to 55 words. To change excerpt length using excerpt_length filter, add the following code to functions.php file in your theme: function custom_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

Posted in wordpress