You are trying to do something that can't be done if PHP has the 'safe mode' option enabled.
How did this happen?
The PHP developer's all agree that the 'safe mode' option was a mistake. It doesn't particularly increase security but does stop some useful functionality. It is being removed in PHP6.
In particular it stops scripts creating their own deep directory structures, and also doing long-running tasks.
How do I fix it?
Ask your web host to disable PHP safe mode and implement an alternative security architecture like 'suEXEC' or 'open_basedir'.
Was I helpful?
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about ocPortal whenever you see the opportunity.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.