Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread John Nichel
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:

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Martin Hudec
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

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Eugene Lee
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

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread PAUL FERRIE
here/you/want/the/file/saved/'.$name; > > if(move_uploaded_file($_FILES['file']['tmp_name'], $destination)) { > > echo 'Successful'; > > } else { > > echo 'Failed'; > > } > > } > > --

RE: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Bronislav Klučka
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'; > } >

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread PAUL FERRIE
#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

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
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

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
'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

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
'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

[PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread PAUL FERRIE
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