Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Renames a file or directory
<?php rename(string $from, string $to, ?resource $context = null): bool
<?php function move_uploaded_file($from, $to)

{

    return \is_file($from) && \rename($from, $to);

}
<?php             $this->warn("Your RoadRunner binary version (<fg=red>$version</>) may be incompatible with Octane.");



            if ($this->confirm('Should Octane download the latest RoadRunner binary version for your operating system?', true)) {

                rename($roadRunnerBinary, "$roadRunnerBinary.backup");



                try {

                    $this->downloadRoadRunnerBinary();
<?php                 } catch (Throwable $e) {

                    report($e);



                    rename("$roadRunnerBinary.backup", $roadRunnerBinary);



                    return $this->warn('Unable to download RoadRunner binary. The HTTP request exception has been logged.');

                }