Marco Tabini wrote...

> If you're using Apache, have you considered suexec? You can write an external
> script that takes care of that.

My hosting provider (DreamHost) uses suexec.  My understanding is that this
lets you run CGI scripts as another user, but I'm not sure how I could take
advantage of this since my code isn't run by users per se.

I'm building something that I hope lots of people will use, and the
challenge is that it needs to "just work" on almost any system that supports
PHP because the audience is, well, not going to know anything -- the ones
that'll have access to a command line won't generally know how to use it.

If I could chmod 777 the directory for a millisecond, the file could get
created/written fine and then everything would work fine from then on out
because the file has the correct permissions.  But in the notes for chmod,
it sounds like lots of hosting providers disable this (which kinda rules it

I will have the users' FTP user name/password, which is why I was thinking
of creating files via FTP.  But speed is important, so this seems like more
of a "last resort" strategy.

I'm stumped.  Many thanks for the response, and I appreciate any additional

-- Charles Wiltgen

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to