Follow Me:

Monday, 6 July 2015

Abstract class in PHP:     Abstract Class  contains only declare the method's signature, they can't define the implementation.     Abstraction class are defined using the keyword abstract .     Abstract Class is not possible to implement multiple inheritance.     Latest version of PHP 5 has introduces abstract classes and methods.     Classes defined as abstract , we...

Wednesday, 13 May 2015

What is JSON? JavaScript Object Notation (JSON) is a lightweight data-interchange format inspired by the object literals of JavaScript.  JSON values can consist of:   objects (collections of name-value pairs)   arrays (ordered lists of values)   strings (in double quotes)   numbers   true, false, or null JSON is language independent. JSON with PHP?    After PHP Version 5.2.0, JSON extension is decodes and encodes functionalities as default. Json_encode  ...

Friday, 1 May 2015

Nginx: 413 Request Entity Too Large Error and Solution   My application is running nginx as a frond end to php based Apache server. My applicatio lets user upload images upto 2MB in size. When users trying to upload 1.5MB+ size image file using nginx reverse proxy, they are getting the following error on screen:     Nginx 413 Request Entity Too Large You need to configure both nginx and php to allow upload size. Nginx...

Wednesday, 1 April 2015

Cookies are stored in browser as a text file format.It is stored limit amount of data.It is only allowing 4kb[4096bytes].It is not holding the multiple variable in cookies. we can accessing the cookies values in easily.So it is less secure.The setcookie() function must appear BEFORE the <html> tag. Sessions are stored in server side.It is stored unlimit amount of data.It is holding the multiple variable in sessions. we cannot accessing the...