Re: Form with browse for file to upload "ftp"
| From: | Martin Hudec | Date: | Sat, 22 Nov 2003 20:16:54 +0000 |
| Subject: | Re: Form with browse for file to upload "ftp" | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170687@lists.php.net to get a copy of this message | ||
Hello,
He said that you have to check under which user/group is your webserver
running (webserver is handling the scripts)... and then set the correct
file/directory permissions on that /blah/blah directory......
yes u have to set at least chmod.... but look to chown also...
On Saturday 22 November 2003 21:18, PAUL FERRIE wrote:
> eh?
>
> "Bronislav klučka" <Bronislav.Klucka@pro2-soft.com> wrote in message
>
> news:PCEBLPFDMGFMKAIKPBIFGECICNAA.Bronislav.Klucka@pro2-soft.com...
>
> > User executing the script (www-data or nobody or some other user) has to
> > vave the permission to wotk with this directory.
> >
> >
> >
> > Brona
> >
> > > I am getting this error once i run the script
> > >
> > > Warning: move_uploaded_file(img/matrix.jpg): failed to open stream:
> > > Permission denied in /blah/blah
> > > Do i need to set the chmod of the img folder?
> > >
> > > Cheers
> > > Paul
> > >
--
:
:. kind regards
:.. Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: =@= corwin@aeternal.net
:.:
:.: "When you want something, all the universe
:.: conspires in helping you to achieve it."
:.: - The Alchemist (Paulo Coelho)