Follow Me:
Showing posts with label Php. Show all posts
Showing posts with label Php. Show all posts

Friday, 28 October 2016

PHP sessions default timeout We are settind the Session Time out in Php as mentioned as below: session.gc_maxlifetime = 1440 (1440 seconds = 24 minutes)...

Friday, 7 August 2015

Differences between InnoDB and MyISAM     In MySQL, major difference of InnoDB and  MyISAM are given below. MyIsam is supporting the table level locking in database. But InnoDB is supporting the row level locking in the database. MyIsam is supporting the FULL TEXT SEARCH functionality and InnoDB also supporting the FULL TEXT SEARCH after MySQL Version of 5.6.4.    MyISAM Engine :  1. It supporting Table-level...

Tuesday, 21 July 2015

CwebP Unsupported Color Conversion Request:     When i am creating WebP images, that time triggering the error as "cwebp unsupported color conversion request, Error Could not be process file".  Error:      $imageName  = "ilikekaraikudi.jpg";     $webpimgName  = "ilikekaraikudi.webp";      cwebp -q 0 ".$imageName." -o ".$webpimgName.    Unsupported color...

Thursday, 16 July 2015

WebP:     WebP is an image file type that was created in 2010 and is created by Google. This image format provides lossless and lossy compression to images on the server. Big social media websites are using WebP image process are Google, Facebook and EBay.    WebP images natively supporting to the following browsers are Chrome, Opera, Opera Mini, Android Browser and Chrome for Android browsers only. It is not supported...

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...

Wednesday, 25 February 2015

Expire the session after some peiod of time by using in php. Basically, two methods are available to destory the sessions.    1. session_destroy()    2. unset($_SESSION['testvaraible'])    3. setting the time out for this session  1.session_destroy()      if we will call the session_destroy(), it will destroy all the SESSION variable.It is no need any other parameters. <?php session_destroy(); ?> 2....

Saturday, 10 January 2015

How to resolved when Logged out sessions get restored by back button? When we log out the sessions , We clear the cookies in browser. But when we press the back button after logging out the session gets restored.  Link : http://www.codingslover.com/2015/01/How-to-resolved-when-Logged-out-sessions-get-restored-by-back-button.html Solution: header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26...

Monday, 3 November 2014

JSON (Javascript Object Notation) is a convenient way to transport data between applications, especially when the destination is a Javascript application. Example : Here is a minimal example that uses JSON as the transport for the server response. The client makes an ajax request with the JQuery shorthand function $.getJSON. The server generates a hash, formats it as JSON and returns this to the client. The client formats this and puts...