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…
How to figure out whether PHP extension is loaded or not on your page? Usually in phpinfo() doesn’t show you all the loaded extensions in one location, it has got a separate section for each loaded extension where it shows all of its variables, file paths, etc so if there is no section for…
PHP: Backup Your Website’s MySQL Database It is always good to backup your MySQL database regularly. You should also create a backup before making any major changes, in case something goes wrong and you need to revert to the unmodified version, then you will found yourself in safe hand. Database backups can also be…
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…