Hello dannyb785,
Thanks for your replay.
My problem is, I want to upload a file to server and get the size of that file while is being uplaoded. I know I have to patch my PHP, use PECL, use perl and balah blah blah....
The thing is you can get the size of that file while is being uploaded, if you know the tmp_name before uploading the file.
You have to know that, once your script gets to $FILE, it starts to get the file and it won't give tmp_name value until the whole file is uploaded. (you can write a PHP script to check the temp folder and return the name of tmp_name but imagine that multiple users are sending their files to your server. How would you know which file is belong to who...?????? ??? ??? ??? ???)
I also change the tmp directory for every single user, it works actually but I want to know if there is another way of doing this. Please don't tell me I have to patch it. I can not do it because of my server. So Does any one know how to set tmp_name or get the value of tmp_name before uploading the file?
I hope I've made myself clear as a Cristal.
So I'm asking again, Is it possible to generate tmp_name before uploading? can we change it?
Thanks,
Memphis