29 lines
496 B
PHP
29 lines
496 B
PHP
<?php
|
|
|
|
namespace src;
|
|
|
|
use Information;
|
|
|
|
require_once "src/Information.php";
|
|
|
|
$fileName = "Information.txt";
|
|
$fileModeOpen = "a";
|
|
|
|
$fullInformation = new Information();
|
|
$fullInformation->load($_REQUEST);
|
|
|
|
echo "<pre>";
|
|
print_r($fullInformation);
|
|
$string = $fullInformation->toString();
|
|
|
|
$file = fopen($fileName, $fileModeOpen);
|
|
fwrite($file, $string);
|
|
fclose($file);
|
|
|
|
$file = file($fileName);
|
|
$str = new Information();
|
|
$res = $str->search($file, "Зайцев");
|
|
|
|
echo $res;
|
|
|
|
require "table.php"; |