Re[2]: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Wednesday, July 30, 2003, 12:09:44 AM, you wrote: AM> The version is PHP Version 4.2.3. AM> On Tue, 29 Jul 2003, Tom Rogers wrote: Then you can use the $_FILES array like this: if($_FILES["photo"]["error"]==0){ //make sure no errors on upload if(!empty($_FILES["photo"]["name"])){ //

Re: [PHP] uploading a file from a form

2003-07-29 Thread Amanda McComb
The version is PHP Version 4.2.3. On Tue, 29 Jul 2003, Tom Rogers wrote: > Hi, > > Friday, July 25, 2003, 1:48:50 AM, you wrote: > AM> I am having a problem with uploading a file from a form. I changed the > AM> permission on the directory, but I am still getting an error. Here is my > AM> err

Re: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Friday, July 25, 2003, 1:48:50 AM, you wrote: AM> I am having a problem with uploading a file from a form. I changed the AM> permission on the directory, but I am still getting an error. Here is my AM> error: AM> Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! AM> It

Re: [PHP] uploading a file from a form

2003-07-28 Thread Martin Peck
- From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Amanda McComb" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 3:43 PM Subject: Re: [PHP] uploading a file from a form > Everything is in the manual: > http://www.php.net/f

Re: [PHP] uploading a file from a form

2003-07-28 Thread Marek Kilimajer
Everything is in the manual: http://www.php.net/features.file-upload Amanda McComb wrote: I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wr

Re: [PHP] uploading a file from a form

2003-07-28 Thread Amanda McComb
I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: > Don't you need to use $HTTP_POST_FILES array because you have > register_globals off? > > Amanda McComb wrote: > > > I am having a problem with uploading a file from a form. I changed the

Re: [PHP] uploading a file from a form

2003-07-25 Thread Curt Zirzow
* Thus wrote Amanda McComb ([EMAIL PROTECTED]): > > mysql_query($add_image_query) or die("Update Failed!"); > Print out the $add_image_query to see whats wrong with it. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php

Re: [PHP] uploading a file from a form

2003-07-25 Thread Marek Kilimajer
Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wrote: I am having a problem with uploading a file from a form. I changed the permission on the directory, but I am still getting an error. Here is my error: Copy failed./home/vencel/www/images/ap

[PHP] uploading a file from a form

2003-07-24 Thread Amanda McComb
I am having a problem with uploading a file from a form. I changed the permission on the directory, but I am still getting an error. Here is my error: Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed! It looks like it's not finding the file type. Here is my code: ", " ");