View import.php
<?php
$host = 'localhost';
$user = 'root';
$pass = '';
$database = 'ingrid';
$file = 'ABBREV.csv';
$db = new PDO("mysql:dbname=".$database.";host=".$host, $user, $pass);
View README.md

Firstly install httpie

sudo apt-get install httpie

Next in firs console run server

php -S 0.0.0.0:8000

In second consoel run sender

View app.php
<?php
// config
$data = [
'email' => 'name@post.com',
'url' => 'http://example.com',
'ip' => '123.15.12.211'
];
View zadanie2.php
<?php
function divide($divider, $dividend) {
if ($divider == 0){
throw new InvalidArgumentException("Divide by zero error");
}
if ($divider < 0){
throw new OutOfRangeException ("Divide is lover then zero");
}
View clear.php
<?php
// definicje funkcji
// funkcja przyjmuje ścieżkę i czas w sekundach dla którego
// chemy usunąć pliki stworzone przed tym czasem
function clear($path,$time)
{
// listujemy wszystki pliki z danej lokaci
View count_text_and_code.pl
#!/usr/bin/env perl
use warnings;
use strict;
use HTML::TagParser;
my $url = 'http://blog.gustawdaniel.pl';
my @tags = ("h1 h2 h3 h4 li p","pre");
print "| text | code | title \n";
View php7.conf
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".+\.phps$">
SetHandler application/x-httpd-php-source
# Deny access to raw php sources by default
# To re-enable it's recommended to enable access to the files
# only in specific virtual host or directory
Require all denied
</FilesMatch>