Tags » PHP 2

First uses of the PHP 5.4 security backports

I recently checked the Debian PHP 5.4 changelog and found out this message (5.4.45-0+deb7u3 and 5.4.45-0+deb7u4):

* most patches taken from https://github.com/kaplanlior/php-src
Thanks a lot to Lior Kaplan for providing them.

74 more words
Debian GNU/Linux

Anonymous CVE requests

A year ago I’ve blogged about people requesting CVE without letting upstream know. On the other hand, per requests from Debian, I’m working on improving PHP upstream CVE request process. 394 more words

Debian GNU/Linux

LEMP (Linux, Nginx, MySQL and PHP) on Ubuntu 14.04

Update packages repository
sudo apt-get update

Install MySQL
sudo apt-get install mysql-server php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation

Install Nginx
echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/nginx-stable.list… 46 more words


Change Yii2 Grideview Column Label

        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

                'attribute' => 'Category Name',
                'value' => 'category.name'
            // 'user_id',
            // 'item_code',

            ['class' => 'yii\grid\ActionColumn'],

Change Relational Label in View at Yii2

         'model' =>$model,
         'attributes' => [
//            'id',
                'label' => 'Category Name',
                'value' => $model->category->name
                'label' => 'Create User',
                'value' => $model->user->first_name
//            'item_code',

Sending emails based on templates and placeholders with attachments using php and smtp

Being a web developer I often need to send emails based on user requirements, some time these are simple emails but some times users want to take control of email contents and attachments. 260 more words


PHP funciton for recursive delete all sublevels of categories

function recursiveDelete($id) {
$result=mysql_query(“SELECT * FROM category WHERE id_parent=’$id'”);
if (mysql_num_rows($result)>0) {
while($current=mysql_fetch_array($result)) {
mysql_query(“DELETE FROM category WHERE id=’$id'”);