PHP

From wiki
Revision as of 10:07, 10 June 2019 by Hdridder (talk | contribs)
Jump to navigation Jump to search

Script language for dynamic web-pages. The syntax and concepts used are similar to Perl

Functions

Function have global scope, you do not need to declare them before calling

<?php
function func1($arg1, $arg2)
{
    <codeblock>
    return $value;
}
?>


Install

On debian (and its derivates)

apt-get install php-fpm php-mysql
Install php7 and mysql support
Fix php security by editing /etc/php/7.0/fpm/php.ini
Uncomment line with cgi.fix_pathinfo and set it to 0