PHP library for Charts, Graphs, Guages & Dashboard

A PHP Chart library ( that promises to supports many features and looks to be an alternate to FusionCharts PHP wrapper, PHPChart, HighCharts PHP etc. Basically, A simple PHP wrapper is missing element in many charting libraries as it takes time to understand the JS api. Other factor to use these libraries is the Cost. From their website, here are some highlights of ChartPHP library:

  • HTML5 powered PHP Charts for Web and Mobile devices
  • Delightful & Hassle free – Line Charts, Multi-line Area Charts, Bar Charts, Pie/Donut Charts, Meter Guages, Funnel Charts and many more.
  • Supports databases including MySql, PostgreSQL, SQL Server, Oracle, DB2
  • Ready-to-Use PHP Sample Code & Demo Charts
  • Chrome, IE 7, IE 8, Firefox, Safari, and Opera Compatible

These libraries definitely save a lot of time, making admin reports, stats charts OR business kpi dashboards.

​The product website seems to be under development​ now.

Posted in Uncategorized. Leave a Comment »

Fixing Thinkpad Fan error

If someone wish to repair FAN ERROR issue of thinkpad byself, here is the tutorial​

Posted in Uncategorized. Leave a Comment »

Easy Database Apps Builders

As a business start-up owner, many of us still thinks that excel is enough for me for customer information and mini CRM, but it is valid only when you have limited usage. When you grow advance, the excel misses several functions like access control, sharing, maintaining central security of data, storing media etc.

Database driven application resolves this limitation by provides stable alternates. Corporates usually hire some IT team and give them requirements for app. But when some one need quick and budget friendly solution, easy option is to use some kind of database application makers. Here i want to share my working, while doing some research on database application builders.

Basic searching idea was, they should be built for business users. No coding and programming skills requirements.



Shoutcast version 1.9.8 (mp3 straming for free)

T​he shoutcast v2, don’t allow mp3 streaming unless you subscribe to Yepp (cost $5). The shoutcast v1 does not have such restriction. So i went to save cash and moved to v1. If someone is finding hard to get download link of v1, here is it:​

​Rest usage is pretty simple:

1) Extract the server, and configure the shoutcast server

vim ./sc_serv.conf

In that you can change port (default to 8000) & broadcast/admin password. Nothing else required to touch, unless you know what you are doing.

2) Run the server (preferred in screen)
./sc_serv sc_serv.conf​


​All for now.​

Posted in Uncategorized. Leave a Comment »

gVim for PHP – windows config

Recently, i tested another editor for PHP (@mwasim, @zshah, @zkhan … which is actually my time wasting hobby). Reason was PDT and Zend was eating up my laptop’s resources and making it too slow. I am fan of notepad++ but it lacks some speedy work which we have in SublimeText. Sublimetext is really nice, but 1) Paid 2) Slow at big files.

The new experiment is not really an innovation. It is the GUI version of linux ‘vim’.

gvim for php

I tweaked some startup config in _vimrc (placed C:\Program Files\Vim).

colorscheme darkblue        " my theme
set guifont=consolas:h11    " my font
set nu!                        " line num

map <C-e> <Esc>dd            " delete line
map <C-d> <Esc>yyp            " duplicate line

let g:netrw_liststyle=3        " tree like explorer
let g:netrw_altv = 1        
let g:netrw_preview = 1

set smartindent                " indenting to 4 space
set tabstop=4                
set shiftwidth=4

Vim comes up with lots of shortcuts, but it gets comfortable only when you used to few tricks. It’s faster than any other so far.

Quick Usage Tips:

– You can open any file in VIM using right click context menu
– Either goto Windows -> File Explorer OR write :Ve command (vertical split explorer)
– Use arrow key to navigate files, and when opening press ‘v’ (for vertical split) or ‘t’ (for new tab)
– Use ‘Ctrl+w+c’ to close any window
– And the key source for file explorer help, try :h netrw

Useful Plugins:

The most wanted sublimetext like Ctrl+P feature in gVim. Install this plugin. Download the archive and place override all the folders inside the vim directory.


Posted in Uncategorized. Leave a Comment » gridview in PHP

A good alternate is available on

The default gridview is something like this.

You can see the live working and screenshots from following links.

Demo Center

Posted in Uncategorized. Leave a Comment »

How to block spambots by user agent using .htaccess

# redirect spambots & rogue spiders to the end of the internet
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSearch [OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft\ URL [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector
RewriteRule .* - [F,L]

Get every new post delivered to your Inbox.

Join 30 other followers