mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
30 lines
595 B
PHP
30 lines
595 B
PHP
<?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>
|