[PHP] Help with upload

2003-07-03 Thread Webmaster
I am trying to do a file upload using the following code. Script doesn't appear to generate any errors that I can see. Just that the file isn't copied. I have put in some debuging code and all variable seem to be correct. file just isn't copying. I have tried both copy() and move_uploaded_file() fu

RE: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-16 Thread jdwright
Mike, I haven't had a problem. I'm using Apache 1.3.14 with PHP 4.0.3pl1 + 4.0.4. I use the same code on 3 computers (depending on where I am when I'm working on it. Normally it's Win95, but Win2k and WinNT are used as well. The snippet of code I use is: --code 1- list($scriptBase, ) = ex

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread David P. Schwartz
This is the same sort of error I'm getting. Try printing out the variables $userfile $userfile_name $userfile_size $userfile_type Telnet or ssh into your system and see if the file is getting transferred into the directory identified in $userfile. In my case, the upload file isn't getting save

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Alexander Wagner
Josh G wrote: > A rose by any other name would smell as sweet, and I'm sure I > remember deleting files back in my old dos days, not to mention > win95 ;-) Um, I suppose every OS does. (I deleted one file or another as well) However this was about unlink, wasn't it? Unlink, basically, is a UNIX

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Josh G
rs to... suffering. - Original Message - From: "Alexander Wagner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 1:01 PM Subject: Re: [PHP] HELP WITH UPLOAD REQUIRED > Josh G wrote: > > Unlink works on some installations, not others

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Alexander Wagner
Josh G wrote: > Unlink works on some installations, not others. I think it works on NT > but not 95 or perhaps the other way around. Why is this? Unlink is > hardly an unsupported system call in windows! Anybody know? Unlink comes from UNIX so it's probably supported by NT rather than Win9x. This

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Josh G
intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Chris Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 12:47 PM Subject: Re: [PHP] HELP WITH UPLOAD REQUIRED > are yo

Re: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Chris Lee
are you running php in safemode? according to http://php.net/manual/en/function.unlink.php unlink() may not work with windows servers, I have no personal experience with windows so I can not confirm this. have you tried http://php.net/manual/en/function.move-uploaded-file.php this might be bette

[PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-15 Thread Mike Yuen
I am trying to allow various users to upload their own picture. What I would like to happen is to have the copy statement rename the .jpg image to the username. For example, if the username is mike, then I want the picture to be renamed mike.jpg The following is a snippet of code: The errors