Web Development Starts Here…

Get Session Status in PHP 5.4

Posted by on Jan 24, 2012 in Code Snippet, PHP | 0 comments

Get Session Status in PHP 5.4

Upto PHP 5.3 we do not have any proper/core function which checks the status of the session.

Here status means, We have called the session_start() function but we wants to make sure that really session is started or not. So this status check function is not available upto PHP 5.3.

Read More

View Image Stored in Database on Webpage

Posted by on Jan 22, 2012 in Code Snippet, PHP | 4 comments

View Image Stored in Database on Webpage

In earlier article we have check to store the image in database using the BLOB datatype. In this article we will check for how to display the images which are stored in database rather than images which are stored in specific folders.

If you have stored images in database then displaying those images is not just a task of giving the data in [code]src[/code] tag.

Read More

Store PHP Session in MemCache

Posted by on Jan 20, 2012 in Code Snippet, PHP | 4 comments

Store PHP Session in MemCache

By defualt PHP stores the session in file and these setting are defined in php.ini file. It would have two settings for saving the sessions in file.

If you are not sure what is the session save path then you should read this post about Session Save Path in PHP.

Read More

Store Images in MySQL Database with PHP

Posted by on Jan 18, 2012 in Code Snippet, PHP | 5 comments

Store Images in MySQL Database with PHP

For any web application uploading an image is comman task. But what is the comman way to manage the uploaded files?

Generally what we do is place the uploaded file on specific folder and store the name of the image or some times path to image in VARCHAR field of the database table.

But this article is to cover the concept to store the image in mysql database. Later on we will discuss how to show the stored image from database to the web page.

Read More

substr vs substring in Javascript

Posted by on Jan 17, 2012 in Javascript | 1 comment

substr vs substring in Javascript

We have these two functions get the part of the string in JavaScript. But both have slight different usage over each other. We can use any one based on our need. I am going explain the major difference between these two functions.

Read More