php create new php file in directory an put content from another file code example
Example: php file_put_contents
file_put_contents ($filename, $data, $flags = 0, $context = null): int
file_put_contents ($filename, $data, $flags = 0, $context = null): int