From the category archives:

php

Here is sample code I use to count words in a post ( I found it somewhere while searching something else). Put the code in functions.php (no need to write plugin)
function blog_post_wordcount() {
global $page, $pages;
if ( !function_exists(’str_word_count’) ) [...]

{ 3 comments }

If you have two blogs installed on same domain, you may want to combine two blogs feed into one blog feed. It will provide few benefits:
a) Ease of feed management
b) More readers
c) Better feed stats and much more
Required tools
=> MagpieRSS rss parser for php (download link)
=> FeedCreator lets you easily create RSS 0.91, 1.0 [...]

{ 7 comments }

Just come across this nice site, especially I liked the PHP tutorial. They are small and easy to follow. Visit online.

{ 0 comments }

Recently I was coding small application in PHP. I wrote simple function that generates the HTML code of table. Here is what I did first
startTable($col, $heading1, $heading2);
Problem with above function was clear I needed something which can very both column and heading without writing 2-3 functions. I know this can be done in ‘C’. [...]

{ 0 comments }

Easiest way to do this is call php/perl script as javascript. Since javascript is client side stuff, php or perl script need to writeback output using javascript commands only. This is useful if you have lots of HTML files and would like to do some server side processing. For example Tips & Tricks section on [...]

{ 25 comments }