How to check whether mod_rewrite module is enabled/loaded or not in Apache There are lots of techniques to check this but below is very simple technique to check whether mod_rewrite module is enabled or not in you web server. 1) Create a file, Type <?php echo phpinfo(); ?> in that file and save…
Turning or convert MySQL data latin1 to utf8 The default character set for MySQL is latin1 (As of PHP 5.6.0, default_charset value is used as the default. From PHP 5.4.0, UTF-8 was the default, but prior to PHP 5.4.0, ISO-8859-1 was used as the default. It’s therefore a good idea to always explicitly specify…
JSON (JavaScript Object Notation) is a text-based, light-weighted, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON follows a small set of formatting rules for the portable representation of structured data. It is easy for humans to read and write and easy for machines to parse and generate. These properties…
PHP: Object Oriented Programming (OOP) php objects A class is a ‘blueprint’ for an object, just like a function that you’d declare and use, a class merely describes a type of object. Before you can do useful logical work with it, you need to create an object (in pure OOP terms instance of a…
Difference between Abstract class and Interface PHP An abstract class is a class that provides some functionality and leaves the remaining functionality for its child class to implement. The child class must provide the functionality not provided by the abstract class (parent) or else the child class also becomes abstract. To define a…
A Quick view on difference between PHP4 and PHP5 PHP5 has improvements in design, security, and stability as compared to PHP4, there are so many features of OOP added in PHP5 to make it more powerful and useful. If you want more details just go to http://www.php.net and find changes in php. Object Model/Passed…