Meebo Social Toolbar

I was waiting for a good social toolbar for my blog and finally I was recommended  one, it is Meebo Social Toolbar. The video here I attached is from meebo website. Share

1 Comments

Symfony 1.4 + Codeigniter = Symfony 2

Recently I tried Symfony 2 Sandbox for one of my projects. I realised this fact that Symfony 2 is so powerful because they restructured the Symfony 1.4 architecture and made a system like Codeigniter Framework. I wrote a post some months back about Codeigniter vs Symfony here. I need to re-edit that post now, because, [...]

8 Comments , , , , , , , , ,

PHP Session problem with cloud server

There is a very strange issue with PHP session when you prefer session to save in files other than database (normal session). The problem is: some times you can access all the saved session values from $_SESSION and sometimes it returns a empty array. If you refresh 10 times, perhaps 4 times you will get [...]

2 Comments , , , , , , , , , , , ,

VARDUMP.IT – PHP remote debugging console

In PHP coding, we spend most of the time for debugging. Either we use echo, print_r or var_dump to check variable values or check whether a particular function is executing or not. These all things are outputting something to browser. This is not applicable in case of redirection, or image processing (GD) or sometimes with [...]

1 Comments , , , , ,

Multi-language support with PHP

If you aim to create a multi-language  website using PHP + Mysql , remember the following tips. You can use mysql database for this purpose rather than using separate language files as usual content management system does. You can create a table with following structure for this purpose.Table: muli-lang string_id: page_id: en: arb: fr: Here [...]

8 Comments , , , , , , , , ,

Management Lessons – Funny but interesting

A very interesting presentation I got from  one of my friend last week. I found somebody uploaded that in slideshare. It is here. Remember, you can forward this ppt to your friends. Only friends ! Don’t forward to your company members or to your boss !  :) Share

0 Comments

IE6 Transparent PNG problem

We all have faced this problem during HTML development. Internet Explorer 6 renders transparent PNG images in different way.  It puts some other color , it damages the design. One solution is create gif images for IE6 and mention those in separate style sheet file for IE6 A simpel solution is IE PNG FIX  javascript [...]

1 Comments

Algorithm for range of dates

Here is a php function which returns from and to date as an array for a range: <?php function get_rangeof_dates($time_frame = ‘all_time’) { $from_date = ”; $to_date = ”; switch($time_frame) { case ‘all_time’:        $from_date = ’1170-01-01 00:00:00′; $to_date = ’2250-12-31 23:59:59′; break; case ‘today’: $from_date = date(‘Y-m-d 00:00:00′); $to_date = date(‘Y-m-d 23:59:59′); [...]

0 Comments , , , , , , , , , , , , , , , , , ,

MxCheck PHP library

This library can be used to check whether an email address is valid or not before sending any email. This is not a syntax validation. It communicates with mail server and check whether the account is really existing or not. The steps involved in this library are: Check syntax of email ( if it is [...]

1 Comments

HTML5 – Demos

1) Amazing game developed with html5 (without any flash) http://www.kevs3d.co.uk/dev/asteroids/ 2) 12 Examples http://htmlfive.appspot.com/ 3) HTML5 Demos http://html5demos.com/ 4) HTML5 Image uploader http://demos.hacks.mozilla.org/openweb/imageUploader/ 5) A list of html5 bookmarking http://delicious.com/khalweir/html5 6) A good HTML5 implementation http://www.nissanusa.com/leaf-electric-car/ 7) Basic video player http://htmlfive.appspot.com/static/video.html A simple game http://www.benjoffe.com/code/games/torus/ 9) A good presentation http://apirocks.com/html5/html5.html#slide1 Share

0 Comments , , , , ,

Facebook Styles from jQuery

A wide range of jQuery plugin which help us to create Facebook style designs are follows: I got this huge collection from this website. I am just rewriting that post here. 1) Facybox Website here 2) Facebox http://famspam.com/facebox 3) FCBKComplete Go to webstie 4) Facebook style registration Go to website 5) Gmail/Facebook style jQuery chat [...]

3 Comments , , , , , , ,

HTTP authentication from PHP

Do you know you can implement http authentication using php code? HTTP authentications are those you see when  you open control panel or administrative backend website, prompting for username and password in html  authentication prompt. This can be done in php using following code: <?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header(‘WWW-Authenticate: Basic realm=”My Realm”‘); header(‘HTTP/1.0 401 Unauthorized’); [...]

1 Comments , , , , , , , , , , ,

Facebook application development – Quick note

This is a quick note for myself to remember some tricks while we develop a Facebook application. If you are a beginner in Facebook application development, go here first. If  you an expert in Facebook development, go here. The steps in creating a facebook app. 1) Register an application in facebook 2) Add Canvas URL [...]

0 Comments , , , , , , , ,

PHP Spider – Sphider

We can create a search page for a dynamic website using Database queries and looping over resultant record sets. But what can we do if the website main contains static html files than dynamically populated content. In this case , we usually put Google search box inside website (Google custom search) Sphider is a php [...]

1 Comments , , , , , , , , , , , , ,

Skip or Hide PHP errors / warnings

Errors are hints from compiler for the programmer to correct. But sometimes we face some unwanted or dynamic error. For example, $content = file_get_contents(http://www.twitter.com/feed/234); Here , the url is invalid, or the server of the url is down , PHP shows Warning: Failed to open stream or file access is disabled. Use @ in front [...]

1 Comments