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

PHP

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.
https://www.makesurehow.com/Install-and-Setup-PHP5-FPM-and-Mariadb-for-Hiawatha-Webserver-on-Centos

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

Php

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;
}


print_r(bubbleSort(array(24,-100,90,7.5)));
Php

PHP 5 Basic

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

<?php
echo “My first PHP script!”;

21 altre parole
PHP

PHP Playground: Cycle

Scenario:

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

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