PHP get user temp directory

1k views Asked by At

The server which xampp runs is 'PC-1'. So when I try with

getenv('temp')

and

var_dump(getenv('temp'),$_ENV);

and

sys_get_temp_dir();

all of them return C:\Users\PC-1\AppData\Local\Temp which is fine. But when I run from PC-2 I want to get that system's temp dir as

C:\Users\PC-2\AppData\Local\Temp where the above function shows PC-1's temp dir.

0

There are 0 answers