PAUL FERRIE wrote:
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
The user or group that your webserver is running as (default for Apache:
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 Nov
On Sat, Nov 22, 2003 at 08:18:30PM -, PAUL FERRIE wrote:
:
: "Bronislav kluèka" <[EMAIL PROTECTED]> wrote in message
: news:[EMAIL PROTECTED]
: >
: > User executing the script (www-data or nobody or some other user) has to
: > vave the permission to wotk with this directory.
:
: eh?
I think
here/you/want/the/file/saved/'.$name;
> > if(move_uploaded_file($_FILES['file']['tmp_name'], $destination)) {
> > echo 'Successful';
> > } else {
> > echo 'Failed';
> > }
> > }
> > --
7;]));
> $destination = 'path/to/where/you/want/the/file/saved/'.$name;
> if(move_uploaded_file($_FILES['file']['tmp_name'], $destination)) {
> echo 'Successful';
> } else {
> echo 'Failed';
> }
>
#x27;Failed';
}
}
----- Original Message -
From: PAUL FERRIE
To: [EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 2:04 PM
Subject: [PHP] Form with browse for file to upload "ftp"
Getting bit of a regular on here :)
I am hoping that someone can point me to
Oh and also, don't forget to set: enctype="multipart/form-data" in the tag.
Nathan
- Original Message -
From: Nathan Taylor
To: PAUL FERRIE ; [EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 2:20 PM
Subject: Re: [PHP] Form with browse for file to upload &qu
'Failed';
}
}
- Original Message -----
From: PAUL FERRIE
To: [EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 2:04 PM
Subject: [PHP] Form with browse for file to upload "ftp"
Getting bit of a regular on here :)
I am hoping that someone can point
'Failed';
}
}
- Original Message -----
From: PAUL FERRIE
To: [EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 2:04 PM
Subject: [PHP] Form with browse for file to upload "ftp"
Getting bit of a regular on here :)
I am hoping that someone can point
Getting bit of a regular on here :)
I am hoping that someone can point me to a script that allows me to attach a
file to be uploaded to a set dir.
I have already got the form built, except for a browse file option.
The form is part of this admin area
http://thor.ancilenetworks.co.uk/~pferrie/vinre
10 matches
Mail list logo