new branch windows

This commit is contained in:
Hash Borgir
2021-03-22 05:12:11 -06:00
parent b3d62294e6
commit 49003c236a
29 changed files with 807 additions and 0 deletions

29
temp-dir.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
$temp = __DIR__."/temp";
putenv("TMP=$temp");
putenv("TEMP=$temp");
putenv("TMPDIR=$temp");
?>
<style type="text/css">@import url("style.css");</style>
<a href="index.php">Go back to index</a>
| <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
<h1>TMP directory</h1>
<p>
A few calls to putenv() overwrite the default directory,
call sys_get_temp_dir() to see it if was set successfully.
</p>
<p>You can also set the temp directory using the "cgi_temp_dir"
option in the settings.json file.</p>
<h2>sys_get_temp_dir()</h2>
<pre>
<?php echo sys_get_temp_dir(); ?>
</pre>