sys_get_temp_dir in shared hosting environment

后端 未结 7 1670
日久生厌
日久生厌 2021-01-31 10:27

Note: This could also fit in superuser.

I am setting up PHP 5.3.10 on a shared host with apache2 mpm itk and open_basedir in a way, that each user may not see o

7条回答
  •  忘掉有多难
    2021-01-31 10:55

    In case people end up here whos Problem is not solved with putenv...

    ... for me, it worked to set the sys_temp_dir using php's ini_set like this:

    $tmpPath = realpath(__DIR__.'/../app/tmp');
    ini_set('sys_temp_dir', $tmpPath);
    

    I am running PHP 5.5.9 (cli) on a windows8 machine.

提交回复
热议问题