Webtutts - webtutts.com - Learn every day | Learn every day

Latest News:

How to impletent Google Chart? 4 Dec 2012 | 06:29 pm

It's easy to implement google chart, either discrete or continuous. It has lot of options to change chart style. Check primarily here: Google Chart Playground

Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, class 'xyz' does not have a method 'initialize' [CORE\Cake\Utility\Obj... 11 Jun 2012 | 06:49 pm

CakePHP has a new version 2.0. With this version upgrade comes up with some issues in older version. One of those issues is: Components now extend Component not Object like in Cake 1.3 or less. So be...

HTML Number to ASCII Character 22 May 2012 | 03:14 am

I found and changed the code to work for me: function unhtmlentities($string) { // replace numeric entities $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); $string =...

How to solve encoding problem in PHP? 11 May 2012 | 09:18 pm

This is a small note for mine and for those who has also fallen in similar situation. I was trying to save non-English characters, but my browser can't show them properly. After digging here and there...

PHP get_browser 9 May 2012 | 03:53 am

Today, while working I found my script is not working properly for get_browser(null, true) in PHP. This function has problem with 'parent' parameter. So I checked the browscap, and it says there is a ...

MySql Export to CSV 26 Apr 2012 | 12:14 am

I was working on a project where I needed to create CSV output file from MySql. So I found something and made it working for me in this way: mysql -u username -p password database_name -B -e "query" ...

Installation of MongoDB with PHP 12 Jun 2011 | 07:43 am

How to setup database (MongoDB) Step 1: Download the latest version from here for OSX (32 bit or 64 bit) accordingly: http://www.mongodb.org/display/DOCS/Downloads Step 2: run this: mkdir -p /data...

Code Igniter 2.0 layout and extending controller 20 Jan 2011 | 11:26 pm

I have setup cake php like codeigniter 2.0 in my server. There is also problem with .htaccess in hostmonster. So I also changed .htaccess accordingly for codeigniter. It works like a charm in every se...

Recently parsed news:

Recent searches: