mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2026-02-28 23:33:58 -06:00
new branch windows
This commit is contained in:
29
temp-dir.php
Normal file
29
temp-dir.php
Normal 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>
|
||||
Reference in New Issue
Block a user