|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-10 20:18 UTC] danielc at analysisandsolutions dot com
[2004-06-11 01:37 UTC] D dot Kingma at jool dot nl
[2004-06-11 12:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 08:00:01 2025 UTC |
Description: ------------ Neither the TEMP or TMP environment variables show up via $_ENV, $_SERVER, getenv() or phpinfo() when accessing scripts via a webserver (Apache 1.3.28). They're available when executing scripts via the command line (both CGI and CLI). FYI: C:\PROGRA~1>echo %temp% C:\TEMP C:\PROGRA~1>echo %tmp% C:\TEMP Reproduce code: --------------- <?php echo 'TEMP: ' . getenv('TEMP') . "\n"; echo 'temp: ' . getenv('temp') . "\n"; echo 'TMP: ' . getenv('TMP') . "\n"; echo 'tmp: ' . getenv('tmp') . "\n"; ?> Expected result: ---------------- TEMP: C:\TEMP temp: C:\TEMP TMP: C:\TEMP tmp: C:\TEMP Actual result: -------------- === Via web server === TEMP: temp: TMP: tmp: === Via command line === TEMP: C:\TEMP temp: C:\TEMP TMP: C:\TEMP tmp: C:\TEMP