Search notes:

Windows environment variables: TEMP and TMP

As Raymond Chen points out, the values of %TEMP% and %TMP% are silently converted to short name (aka 8.3) format, if possible.
The value of these two variables is assigned to the value %USERPROFILE%\AppData\Local\Temp in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\DefaultUserEnvironment
See also C:\Users\username\AppData\Local\Temp
The TEMP environment variable might contain a tilde (~) which is used to shorten long paths:
PS C:\> $env:temp
C:\Users\DOMA~1.REN\AppData\Local\Temp
At times, the value of $env:temp needs to be expanded to the real path. This is possible with
PS C:\> [System.IO.File]::GetFullPath($env:temp)
C:\Users\DOMAIN.Rene\AppData\Local\Temp

See also

Windows environment variables

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758201056, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/environment-variables/TEMP-TMP(51): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78