note 118001 added to function.sys-get-temp-dir

From: Date: Thu, 17 Sep 2015 11:07:07 +0000
Subject: note 118001 added to function.sys-get-temp-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-203796@lists.php.net to get a copy of this message
A very helpful thing to note when on Linux: If you are running PHP from the commandline you can use the environment variable: TMPDIR - to change the location without touching php.ini. - This should work on most versions of PHP. Example file: test.php <?php echo sys_get_temp_dir() . PHP_EOL; ?> And then running: php test.php /tmp TMPDIR=/custom/location php test.php /custom/location ---- Server IP: 72.52.91.14 Probable Submitter: 178.132.215.131 ---- Manual Page -- http://php.net/manual/en/function.sys-get-temp-dir.php Edit -- https://master.php.net/note/edit/118001 Del: integrated -- https://master.php.net/note/delete/118001/integrated Del: useless -- https://master.php.net/note/delete/118001/useless Del: bad code -- https://master.php.net/note/delete/118001/bad+code Del: spam -- https://master.php.net/note/delete/118001/spam Del: non-english -- https://master.php.net/note/delete/118001/non-english Del: in docs -- https://master.php.net/note/delete/118001/in+docs Del: other reasons-- https://master.php.net/note/delete/118001 Reject -- https://master.php.net/note/reject/118001 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203796) next »