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
eh? "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. > > > > Brona > > > > I am getting this error once i run the script > > > > Warning: move

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

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

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

2003-11-22 Thread PAUL FERRIE
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 "Nathan Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] There is nothin

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
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '', $_FILES['file']['name']))

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

2003-11-22 Thread Nathan Taylor
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '', $_FILES['file']['name']))