Hmm...I'm not a *nix guru, but I remember there is a command that allows you
to change current user.
so suppose it was called: changeuser, do this with PHP as web user:
1)execute changeuser [ftplogin] [ftppassword]
normally the ftp user have the rights to change mode and write to files
2)execute chmod filename newmode (as ftp user)
hope this gives a hint,
"Stephan HüBner" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
> another newbie-question, probably... :-)
> And sorry for my (possibly) bad english, I'm from Germany.
> the problem I noticed is that I have to write to a file on the server. I
> created a directory where I store the files, upload a data-file into it
> tried to write to it via a php-file. But it seems I don't have the right
> write to it and somehow I can't change that with the ftp-programm I have
> ("Interarchy" on the Mac). So, does anybody know if there is a solution
> this? I mean, others have to write to the server too, so there must be a
> to do it... (btw, it's a linux or unix server where the pages are on).
> Thanks for your thoughts.
> Have a nice day,
> Stephan Huebner
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]