Tag » PHP5

How to install php curl ?

### First, check if there is enabled curl.
$ php info | grep -i curl

### If no result then install the php curl library
$ sudo apt-get install php5-curl

### Once its installed restart the server
$ sudo /etc/init.d/apache2 restart

### Verify if the curl is enabled. 22 altre parole

How to install php7 on Mac os

PHP7 came into the open source market from 2015. It’s time to install it and begin to use it.

This is what I have done for installing php7.0 and the configuration on… 273 altre parole


Bubble sort in php

function bubbleSort(array $array) {
 $array_size = count($array);
   for($i = 0; $i < $array_size; $i ++) {
     for($j = 0; $j < $array_size; $j ++) {
       if ($array[$i] < $array[$j]) {
         $tem = $array[$i];
         $array[$i] = $array[$j];
         $array[$j] = $tem;
 return $array;


PHP 5 Basic

PHP is a server scripting language, and is a powerful tool for making dynamic and interactive Web pages quickly.

echo “My first PHP script!”;

21 altre parole

PHP Playground: Cycle


  $items = ['Item 1', 'Item 2', 'Item 3'];

  $index = 0 ;
  print "<ul>"; 
  foreach( $items as $item ) { 
    print '<li class="'. ( $index % 2 ? 246 altre parole

All About Session in PHP

A session is basically a temporary set of variables used to transfer information from one page to another. More broadly we can say that it gives options to create once and used inside whole project. 305 altre parole

PHP Training

dpkg : error processing pakage

If you found this when you do “sudo apt-get update && upgrade”
dpkg: error processing package php5-mysqlnd (–configure):

then the way to fix that is by typing this command… 6 altre parole