Open_basedir preventing fopen(...,"w")

software development

#1

I get the following when trying to write to a temp file:

I don’t understand, since /tmp is in the list of permitted directories. I’ve also tried to write to a directory in /home/wtlladm, also in the path, with the same error.

What do I have to do to open a file to write?


#2

Hi, this article from the KBase might help:

PHP Security

https://panel.dreamhost.com/kbase/index.cgi?area=2526&keyword=open restrictions