If it's internal stuff to your application, you can write in a 777 directory (such as /tmp) and retrieve it from there. If you want to write in a specific directory, you can set up a cron job to copy the file from the 777 directory to wherever you please from time to time. I'm not aware of any direct solutions to the problem (which is good - otherwise this posting would be renamed to "Short Hacker's Guide to Arbitrarily Bypass Linux Permissions" and thankfully that's not available). So you'll basically have to find a workaround with maximum functionality and minimum risks involved.
Bogdan Xin Li wrote: > Hi, > > I want to launch a program which writes a file on the > server. But the process is under the owner of > "webuser" who doesn't have write permission, and I > don't want to set the directory writable to all users. > I've searched the doc and tried every way but couldn't > find a solution. Anybody knows how to solve this? > > BTW, my php is a pretty old version and doesn't > support suexec and ftp functions. > > Thanks a lot > > Xin Li > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php