CSV
PHP File Function: CSV
<?php
// current directory
// /home/web/project
echo getcwd() . "\n";
chdir("specific-folder");
// current directory
// /home/web/project/specific-folder
echo getcwd() . "\n";
function basePath($path = '') : string {
$base_path = getcwd();
$base_path = rtrim($base_path, 'public');
$base_path = rtrim($base_path, '\/');
return $base_path . ($path != '' ? DIRECTORY_SEPARATOR . $path : '');
}
PHP File Function: CSV
PHP File Function: PharData tar and zi file process