sys_get_temp_dir

Supported Versions: PHP 5 >= 5.2.1, PHP 7, PHP 8
Returns directory path used for temporary files
<?php sys_get_temp_dir(): string
<?php     protected function blade(string $template, $data = [])

    {

        $tempDirectory = sys_get_temp_dir();



        if (! in_array($tempDirectory, ViewFacade::getFinder()->getPaths())) {

            ViewFacade::addLocation(sys_get_temp_dir());
<?php         $tempDirectory = sys_get_temp_dir();



        if (! in_array($tempDirectory, ViewFacade::getFinder()->getPaths())) {

            ViewFacade::addLocation(sys_get_temp_dir());

        }



        $tempFileInfo = pathinfo(tempnam($tempDirectory, 'laravel-blade'));
<?php         $this->aliases = $aliases;

        $this->namespaces = $namespaces;



        $this->blade = $blade ?: new BladeCompiler(new Filesystem, sys_get_temp_dir());

    }
<?php     #[BeforeClass]

    public static function setUpTempDir()

    {

        self::$tempDir = sys_get_temp_dir().'/tmp';

        mkdir(self::$tempDir);

    }
<?php         if (ini_get('open_basedir') === '') {

            $openBaseDir = windows_os() ? explode('\\', __DIR__)[0].'\\'.';'.sys_get_temp_dir() : '/';

            $iniSet = ini_set(

                'open_basedir',

                $openBaseDir