Re: Can't write to file via php, just via ftp...Can anyone help?
| From: | elias | Date: | Tue, 31 Jul 2001 10:58:46 +0000 |
| Subject: | Re: Can't write to file via php, just via ftp...Can anyone help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60363@lists.php.net to get a copy of this message | ||
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,
//elias
"Stephan HüBner" <SGHuebner@gmx.de> wrote in message
news:B78B96B0.B2B6%SGHuebner@gmx.de...
> 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
and
> tried to write to it via a php-file. But it seems I don't have the right
to
> 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
for
> this? I mean, others have to write to the server too, so there must be a
way
> 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
>