#!/usr/local/php7.3/bin/php
<?php
$full_path = $argv[1];
$path = $argv[2];
$cmd = `cp -a /home/www/shared/codeigniter/$full_path/public/* .`;
$index = file_get_contents('index.php');
$index = str_replace('__DIR__', "'/home/www/shared/codeigniter/$full_path/'", $index);
$index = str_replace('../', "/", $index);
file_put_contents('index.php', $index);