Tag » PHP5

PHP5 auf PHP7 migrieren

Im Rahmen einer Umstellung auf das aktuellste PHP 7 trifft man derzeit häufig auf das Problem, dass die veralteten mysql_* Funktionen bereits mit PHP 7 rausgeflogen sind. 175 altre parole


How to Install and Setup PHP5 FPM and Mariadb for Hiawatha Webserver on Centos

PHP is a SSCL (Server Side Scripting Language) that is designed for web development. PHP is also used as a general purpose programming language.

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