RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
> Thanks!! I'll give that a try! > > On Thu, 6 Mar 2003, 1LT John W. Holmes wrote: > > > > Well, I have a statement that says: > > > > > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > > > echo an error > > > }else{ > > > proceed with renaming the file > > >

Re: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
Thanks!! I'll give that a try! On Thu, 6 Mar 2003, 1LT John W. Holmes wrote: > > Well, I have a statement that says: > > > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > > echo an error > > }else{ > > proceed with renaming the file > > } > > > > The er

Re: [PHP] Uploading file problem

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 03:28, Amanda McComb wrote: > Well, I have a statement that says: > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } The copy() function allows you to specify a d

Re: [PHP] Uploading file problem

2003-03-06 Thread 1LT John W. Holmes
> Well, I have a statement that says: > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } > > The error that is echoed after the copy is the one that pops up. So, it > could be some other problem,

Re: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
Well, I have a statement that says: if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { echo an error }else{ proceed with renaming the file } The error that is echoed after the copy is the one that pops up. So, it could be some other problem, but

Re: [PHP] Uploading file problem

2003-03-06 Thread Mark Heintz PHP Mailing Lists
What do you mean by "fails at the copy"? Have you verified that the filename and path you're copying to is valid? Otherwise, if the filename that is failing is consistently the same, and if it's attempting to overwrite an existing file, it could be a permissions problem. Just a couple of guesse

RE: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
The files go to different directories, but I checked the permissions on all of the directories, and they are all '777'. I am able to upload files, so I think the directory is ok. The server is unix. I am going to ask my boss to send me the files he is trying to upload to see if the files are t

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
> I'm very new to PHP, so I hope no one is offended by reading my very basic > questions. > > I have created a web form that saves some data to a database and uploads > three files, copies them to a new directory, and renames them. From my > work machine and home machine, it works great for me - t