473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How upload works?

Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?

when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Jul 14 '08 #1
14 3052

"BigZero" <vi**************@gmail.comwrote in message
news:b1**********************************@r66g2000 hsg.googlegroups.com...
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?

when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
http://www.faqs.org/rfcs/rfc1867.html along with $_FILES
(http://in2.php.net/features.file-upload) is possible to understand.
The experts in this group will explain more.
Jul 14 '08 #2
On Jul 14, 12:03 pm, "sathyashrayan" <sathyashra...@ATGmaIl.com>
wrote:
"BigZero" <vijaymajagaon...@gmail.comwrote in message

news:b1**********************************@r66g2000 hsg.googlegroups.com...
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM

http://www.faqs.org/rfcs/rfc1867.html along with $_FILES
(http://in2.php.net/features.file-upload) is possible to understand.
The experts in this group will explain more.
Thanks, but it takes more time to understand or read those links,is
there any way to under stand the concept.....in bit faster way.


Thanks
VM
Jul 14 '08 #3

"BigZero" <vi**************@gmail.comwrote in message
news:f3**********************************@d77g2000 hsb.googlegroups.com...
On Jul 14, 12:03 pm, "sathyashrayan" <sathyashra...@ATGmaIl.com>
wrote:
>"BigZero" <vijaymajagaon...@gmail.comwrote in message

news:b1**********************************@r66g200 0hsg.googlegroups.com...
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM

http://www.faqs.org/rfcs/rfc1867.html along with $_FILES
(http://in2.php.net/features.file-upload) is possible to understand.
The experts in this group will explain more.

Thanks, but it takes more time to understand or read those links,is
there any way to under stand the concept.....in bit faster way.
We can't do magic is it? All will take time..
>
Thanks
VM

Jul 14 '08 #4
On Jul 14, 2:09 pm, "sathyashrayan" <sathyashra...@ATGmaIl.comwrote:
"BigZero" <vijaymajagaon...@gmail.comwrote in message

news:f3**********************************@d77g2000 hsb.googlegroups.com...
On Jul 14, 12:03 pm, "sathyashrayan" <sathyashra...@ATGmaIl.com>
wrote:
"BigZero" <vijaymajagaon...@gmail.comwrote in message
>news:b1**********************************@r66g200 0hsg.googlegroups.com...
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
>http://www.faqs.org/rfcs/rfc1867.htmlalong with $_FILES
(http://in2.php.net/features.file-upload) is possible to understand.
The experts in this group will explain more.
Thanks, but it takes more time to understand or read those links,is
there any way to under stand the concept.....in bit faster way.

We can't do magic is it? All will take time..
Thanks
VM
ha ha ha i known thanks.....:)

VM
Jul 14 '08 #5
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?

when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.
Jul 14 '08 #6
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM

Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.
u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.

Thanks
VM
Jul 14 '08 #7
BigZero wrote:
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
>BigZero wrote:
>>Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.

u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.

Thanks
VM
Get a faster link. Your hangup is most probably your link speed at the
client end.

And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 14 '08 #8
On Jul 14, 4:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
BigZero wrote:
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.
That data stream is passed by the web server to the PHP module as part
of its input.
php just picks over it and sorts it into arrays.
u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.
Thanks
VM

Get a faster link. Your hangup is most probably your link speed at the
client end.

And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
what every my speed(link) the time is taking is too much for me.as i
have tested in lan, and the link is 2mbps, i think is it ok that,then
it can transfer file bit faster,but it takes same time.....
Thanks
VM
Jul 14 '08 #9
BigZero wrote:
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
>BigZero wrote:
>>Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.

u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.
No. Its mostly a function of the upload speed on your internet connection.

If its ADSL, check teh 'A' - that means asymmetric.

e.g.here I have 3Mbps+ download, but only 448kbps upload..
Thanks
VM
Jul 14 '08 #10
Jerry Stuckle wrote:
BigZero wrote:
>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
>>BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.

u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.

Thanks
VM

Get a faster link. Your hangup is most probably your link speed at the
client end.

And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".
You must stop lying Jerry. I said that php sorts the DATA STREAM into
arrays.
Jul 14 '08 #11
BigZero wrote:
On Jul 14, 4:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>BigZero wrote:
>>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.
That data stream is passed by the web server to the PHP module as part
of its input.
php just picks over it and sorts it into arrays.
u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.
Thanks
VM
Get a faster link. Your hangup is most probably your link speed at the
client end.

And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

what every my speed(link) the time is taking is too much for me.as i
have tested in lan, and the link is 2mbps, i think is it ok that,then
it can transfer file bit faster,but it takes same time.....
Thanks
VM
It doesn't make any difference. It's going to take time to transfer.
The faster the link, the less time it will take (until you run into the
next limitation, that is).

Also, often times links are rated in download speeds, while upload
speeds may be much slower. You need to look at the fine print.

But there is nothing in PHP you can do about this.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 14 '08 #12
On Jul 14, 4:48 pm, The Natural Philosopher <a...@b.cwrote:
Jerry Stuckle wrote:
BigZero wrote:
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.
>That data stream is passed by the web server to the PHP module as part
of its input.
>php just picks over it and sorts it into arrays.
u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.
Thanks
VM
Get a faster link. Your hangup is most probably your link speed at the
client end.
And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".

You must stop lying Jerry. I said that php sorts the DATA STREAM into
arrays.
ok, thanks for that information,
Thanks
Vm
Jul 14 '08 #13
The Natural Philosopher wrote:
Jerry Stuckle wrote:
>BigZero wrote:
>>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
Hello,
can nay body tell me how upload works?
"well the code that i m using works fine with me i mean that the file
uploadin is working but i m unable to find how it internal it works"?
when the form posted from the html page it goes to some php file that
and in the php file i m uploading to path
"move uploaded file tmp_file name to the path" ok.
but how the file came to server the tmp file?
acn any body explain this plz
Thanks
VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.

That data stream is passed by the web server to the PHP module as part
of its input.

php just picks over it and sorts it into arrays.

u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.

Thanks
VM

Get a faster link. Your hangup is most probably your link speed at
the client end.

And BTW - PHP is not involved in the actual upload. The browser sends
the entire file to the server before PHP is ever invoked. Also, PHP
doesn't "sort the file into arrays".

You must stop lying Jerry. I said that php sorts the DATA STREAM into
arrays.
ROFLMAO. Trying to cover your ignorance with more of your personal
insults, huh?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 14 '08 #14
Jerry Stuckle wrote:
The Natural Philosopher wrote:
>Jerry Stuckle wrote:
>>BigZero wrote:
On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrote:
BigZero wrote:
>Hello,
>can nay body tell me how upload works?
>"well the code that i m using works fine with me i mean that the file
>uploadin is working but i m unable to find how it internal it works"?
>when the form posted from the html page it goes to some php file that
>and in the php file i m uploading to path
>"move uploaded file tmp_file name to the path" ok.
>but how the file came to server the tmp file?
>acn any body explain this plz
>Thanks
>VM
Roughly, the browser sends the file uplaod as part of a huge POST data
stream.
>
That data stream is passed by the web server to the PHP module as part
of its input.
>
php just picks over it and sorts it into arrays.

u mean to say is that file transfered or data transfered through http.
well in this case is there any way that we can reduce the time taken
for transport.i mean when i upload a file that is around 3 to 4 mb
size it takes more time to upload, is there any way that we reduce the
time taken to upload.

Thanks
VM
Get a faster link. Your hangup is most probably your link speed at
the client end.

And BTW - PHP is not involved in the actual upload. The browser
sends the entire file to the server before PHP is ever invoked.
Also, PHP doesn't "sort the file into arrays".

You must stop lying Jerry. I said that php sorts the DATA STREAM into
arrays.

ROFLMAO. Trying to cover your ignorance with more of your personal
insults, huh?
No. I leave that to you, generally.
Jul 14 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tihon | last post by:
Hello! I again need your help, just can't understand whats going on. Got this upload pictures form and it's having problem handling large files (~1.5 - 2 MB). Everything works fine if i just...
15
by: Simon | last post by:
I would like to create a very basic file upload add image form to add to my web site and to keep them in a "tmp" directory within my web hosting file manager once uploaded. I understand the basic...
3
by: David Kenneally | last post by:
Hello- I'm having a problem doing a file upload from within the edit function of a datalist. I have a simple file upload that works on a standard ..net page: <td width="53"><input...
1
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp"...
3
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
6
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
I have a strange problem when uploading a PDF document to a web-server. When I try this to a web-server running Apache 2 on a FC 4, it fails. Firefox says that the document contain no data. If I...
9
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.