PHP5.5 introduced a new keyword finally. Now it provides more concern about resource handling.
It is much like Java. Finally keyword is used with try/catch/finally pair. Code block in finally will always be executed no matter an exception occurs or not.
Almost all web developer may have idea of JSON. JSON is a lightweight string format which is language independent, So it is used in data transfer between web application. PHP has two inbuilt json_encode() & json_decode() function which are used to encode & decode JSON. Normally we encode a set of data which is an
Boolean is data type which can have only two values (TRUE/FALSE). The function is_bool() checks a string is it Boolean or not. PHP provides a function filter_var() which has great utility to check variables. It can also validate boolean strings’s.
Generally we make synchronous request using REST call in PHP. We want to wait for response of our REST call.But some time we need to send a request only, do not want to wait for the response. In such case we want to make an asynchronous request. cURL has no other way to support asynchronous
phpMyAdmin is a free software to manage MySQL Databases. Install phpMyAdmin It’s the easiest way to install phpMyAdmin with apt-get. Setup with Apache Step-1. Edit apache configuration Step-2. Add the phpmyadmin config to the apache configuration. Step-3. Restart apache After restarting apache webserver you can access phpMyAdmin by http://localhost/phpmyadmin.
The Apache HTTP Server provides a mechanism for storing information in named variables that are called environment variables. This information can be used to control various operations such as logging or access control. Environment variable can be added by putting following line to apache2.conf. This Environment variable is accessible in CGI Scripts or Server side scripts.
Download the code from github for basic application build using Yii2 Framwork.
Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.
Composer is not a package manager. Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them in a directory
Wish you all a very happy & special new year 2014. Year 2014 could be like every new year comes after every 31st dec @24:00:00 but we can make it something better. We should make plans for 2014 for our growth. We should learn from mistakes made in 2013. We should remember best memories
PHP 5.x includes a new OOP model based on the Zend Engine 2.0, a new extension for improved MySQL support, built-in native support for SQLite, and much more.