This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$content = file_get_contents(__DIR__ . '/project/public/index.php'); | |
$content = str_replace("__DIR__.'/../", "__DIR__.'/../project/", $content); | |
file_put_contents(__DIR__ . '/project/public/index.php', $content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function array_clone($array) { | |
return array_slice($array, 0, null, true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get a temporary filename with a specific extension | |
* @method temporary_filename | |
* @param string $dir The directory where it tries to create the temporary file | |
* @param string $extension The extension of the file (default: '') | |
* @param string $prefix The prefix of the file (default: '') | |
* @param integer $retry The number of times it tries to create a random filename (default: 100) | |
* @return string|FALSE | |
*/ | |
function temporary_filename($dir, $extension = '', $prefix = '', $retry = 100) { |
NewerOlder