Tag Archives: php

Kako do broja PI? Korak 1

Broj π se može obračunati na više načina (Arhimed, Bazelski problem i slično), a čini se da je jedna zakonotost povoljna da se to uradi programski.

Posted in Programiranje | Tagged , , | Leave a comment

PHP APCU on Debian

apt install gcc make autoconf libc-dev pkg-config php-devpecl channel-update pecl.php.netpecl install apcu You should add “extension=apcu.so” to php.ini /etc/php/8.2/fpm/conf.d/20-apcu.ini or try:

Posted in Hosting, Informacione tehnologije | Tagged , | Leave a comment

PHP vs Python pack format comparation

Differences between PHP and Python pack/unpack format characters

Posted in Informacione tehnologije, Programiranje | Tagged , | Leave a comment

What’s new in PHP 8

After a lot of to-ing and fro-ing as to when PHP 8 would be released, the developers have now announced that November 26th, 2020 is the date we’re waiting for. The new version of PHP is expected to come with … Continue reading

Posted in Drugi pišu, Informacione tehnologije, Programiranje | Tagged , | 1 Comment

PHP list() and Shorthand for Array Destructuring

PHP construct list() or its shorthand can be useful in many cases. It can be very useful to use it with PHP functions that returns arrays. Supun Kavinda have interesting article about.

Posted in Drugi pišu, Informacione tehnologije, Programiranje | Tagged , , | Leave a comment

php5.6, php7 on ubuntu14 via phpbrew

Installation procedure for php5.6 (officel release) and php7 (alpha) on Ubuntu 14.04, via phpbrew package.

Posted in Hosting, Informacione tehnologije, Internet, Linux | Tagged , , , , | 6 Comments

Install PHP 5.4 as standalone

PHP 5.4 is not packaged on most Linux distributions so it may be easiest to install it from source. On Debian-based Linux systems, you can use the following commands to install PHP 5.4 in such a way that it won’t … Continue reading

Posted in Hosting, Linux | Tagged , , | 5 Comments

PHP sada ima ugrađeni veb server

Dočekali smo i PHP verziju 5.4.0. New features in PHP Improvements in memory management and performance. Traits – A new mechanism for code reuse. It reduces the limitations of single inheritance. Shortened Array syntax. Now use […] instead of array(…) … Continue reading

Posted in Hosting, Informacione tehnologije, Internet | Tagged , , | Leave a comment

PostgreSQL function call model for PHP

This article describes a simple class that can be used to call PostgreSQL functions. Using the class has a number of advantages: PostgreSQL functions can be called like they are PHP method functions with no special syntax. The statements are … Continue reading

Posted in Informacione tehnologije, Programiranje, Softver | Tagged , | Leave a comment