Skip to content

Instantly share code, notes, and snippets.

@szihaj
szihaj / install_php5.3_on_ubuntu.txt
Last active September 20, 2023 15:09
How to install PHP 5.3 on Ubuntu
sudo add-apt-repository ppa:sergey-dryabzhinsky/php53
sudo apt-get update
sudo apt-get install php53-common php53-cli
# to see a list of available packages:
# apt-cache search php53
# ex.: sudo apt-get install php53-mod-mysql
# Apache module:
sudo apt-get install libapache2-mod-php53
@szihaj
szihaj / HungarianTaxNumberGenerator.php
Created April 6, 2018 11:19
Hungarian tax number generator
<?php
namespace Acme\Utilities;
use \DateTime;
class HungarianTaxNumberGenerator
{
protected $number = '8';
<?php //var_dump(opcache_get_status()); exit(); phpinfo(); exit();
include 'vendor/autoload.php';
use phpFastCache\CacheManager;
$dsn = 'mysql:dbname=employees;host=127.0.0.1';
$user = 'root';
$password = '$ecR3t';