<?php
return ['user' => 'admin','name' => 'GOD','pass' => '123123'];
$conf = require('conf.conf');
echo $conf['user'];
// save
file_put_contents('conf.conf', "<?php\n\n" . 'return ' . var_export($config, true) . ";\n");
ob_get_level() && ob_end_clean();
header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');
header('Content-Type: application/force-download');
header('Content-Description: inline; File Transfer');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: attachment; filename="' . $name . '";', false);
header('Content-Length: ' . $len);
$upload = new SplFileObject($url, 'rb');
while (!$upload->eof()) {
echo($upload->fgets());
}
flush();
exit;
на убунте проверял
чтиво по флагам дял конфигурирования
https://github.com/libssh2/libssh2/blob/master/docs/INSTALL_AUTOTOOLS
sudo apt-get install gcc g++ pkg-config libncurses5-dev gawk build-essential autotools-dev bison re2c flex gperf libtool automake cmake
cd /home
sudo mkdir test
sudo chmod -R 777 test
wget https://www.libssh2.org/download/libssh2-1.8.2.tar.gz
sudo tar -xzf libssh2-1.8.2.tar.gz
cd libssh2-1.8.2
./buildconf
./configure
make
далее думаю разберетесь
echo preg_match_all('#<div>(<p>.*</p>)</div>#isU', $text);