Improved Features in the Upcoming Package of PHP 7.1

It was hardly around middle of December last year that PHP 7 was released. Approximately, it has hardly been six months now that speculation is ripe for the launching of the application software’s yet more upgraded version, namely PHP 7.1. In this volatile environment, dedicated PHP developers in Australia are busy keeping themselves abreast to […]

Some valuable points in Yii

Here I want to share some valuable points which may helpful for Yii developer. 1.Getting current theme in Yii Ans: Yii::app()->theme->name 2. Getting base URL in Yii: Ans: Yii::app()->getBaseUrl(true);

Recurrence dates using PHP

PHP makes easy to generate recurrence dates using “strtotime”.It is awesome function supported by PHP. The following samples are showing that . It is very easy to get real life recurrence dates like OUTLOOK.   echo date(‘Y-m-d’,strtotime(“now”)); echo date(‘Y-m-d’,strtotime(“10 September 2000″)); echo date(‘Y-m-d’,strtotime(“+1 day”)); echo date(‘Y-m-d’,strtotime(“+1 week”)); echo date(‘Y-m-d’,strtotime(“+1 week 2 days 4 hours 2 […]

Custom Excerpt in PHP

Custom excerpt function makes easy to make a simple excerpt text. Using reg-exp , we can easily create the small text. In my function , There are two parameters, First one is text content and another one is length of the string . You can use this custom excerpt into your own project.  Function Code is […]

Email sending in PHP

This below code is used for Email sending in PHP. In this code we are sending a simple email with HTML content. This below code is used for Email sending. In this code we are sending a simple email with HTML content. $to = “abcd@gmail.com”; $header .= “MIME-Version: 1.0\r\n”; $header .= “Content-Type: text/html; charset=\”utf-8\”\r\n”; $header […]