sys_get_temp_dir in shared hosting environment

后端 未结 7 1533
日久生厌
日久生厌 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:58

    According to this - 4 year old - bug, sys_get_temp_dir() won't work with virtual-hosts; so

    • you can try to use only libraries that fixed this issue (& open a bug for those who didn't)
    • or append /tmp (or whatever your OS uses) in your open_basedir, as it can hold multiple directories (like include_path - separate it with ; on Windows, : otherwise)

提交回复
热议问题