Help Need in PHP File Upload
| From: | ppf | Date: | Tue, 10 Dec 2002 21:20:40 +0000 |
| Subject: | Help Need in PHP File Upload | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127721@lists.php.net to get a copy of this message | ||
Hi:
I need to upload a file during form submittion, I had
done all the coding on my local Linux box It work fine
over here.
When i moved the code to my Client machine File upload
is not working well.
Server side code first check where file upload is
successful by
is_uploaded_file($HTTP_POST_FILES['file']['tmp_name'])
method, if it is True it will copy it to the
destination folder.
Once i hosted this code on my clients machine First
attempt will work successfully, it will copy the file
into the destnation folder. But when i tries to repeat
the form submission process, from second time onwards
unsuccessful.
I am programmatically creating new folder each time
so there is no chance of over writing issues.
Whe i checked the code more care fully, Function
is_uploaded_file($HTTP_POST_FILES['file']['tmp_name'])
returns False
I am quite new to Linux env. Is it due to some sought
of permission issue? Or due to Version problem.
I am using Php4.0.3 on my local Linux Box and 4.2.3
on Clients machine. I also tested this code on
window's Apache/php4.2.3 It works fine over windows .
If anybody can point out the error will be a great
Help for me.. Thanks in advance
Prad
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com