thomasveil
Programmer
Hi
I am currently working on a project that requires xml documents to be created and then saved in directories which are also created as needed.
The problem i am running up against is the safe_mode feature of php.
When i use a script to create a new directory or xml file the owner is set to the apache server (on my host). This means that when i want to save xml files to a newly created folder or make alterations to newly created xml files, php safe_mode blocks access because the uid is not the same as the file/directory owner.
Is there any work around for this that anyone knows (i can't seem to find one). This project is designed to be portable so that it can be simply installed on any host so the workaround needs to take this into account.
I am currently working on a project that requires xml documents to be created and then saved in directories which are also created as needed.
The problem i am running up against is the safe_mode feature of php.
When i use a script to create a new directory or xml file the owner is set to the apache server (on my host). This means that when i want to save xml files to a newly created folder or make alterations to newly created xml files, php safe_mode blocks access because the uid is not the same as the file/directory owner.
Is there any work around for this that anyone knows (i can't seem to find one). This project is designed to be portable so that it can be simply installed on any host so the workaround needs to take this into account.