How upload works?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BigZero

    #1

    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
  • sathyashrayan

    #2
    Re: How upload works?


    "BigZero" <vijaymajagaonk ar@gmail.comwro te in message
    news:b1852bfa-72d2-4e06-9923-27f0401c10d9@r6 6g2000hsg.googl egroups.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.


    Comment

    • BigZero

      #3
      Re: How upload works?

      On Jul 14, 12:03 pm, "sathyashra yan" <sathyashra...@ ATGmaIl.com>
      wrote:
      "BigZero" <vijaymajagaon. ..@gmail.comwro te in message
      >
      news:b1852bfa-72d2-4e06-9923-27f0401c10d9@r6 6g2000hsg.googl egroups.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

      Comment

      • sathyashrayan

        #4
        Re: How upload works?


        "BigZero" <vijaymajagaonk ar@gmail.comwro te in message
        news:f3866381-67b5-434e-91a2-a0e28c259dc2@d7 7g2000hsb.googl egroups.com...
        On Jul 14, 12:03 pm, "sathyashra yan" <sathyashra...@ ATGmaIl.com>
        wrote:
        >"BigZero" <vijaymajagaon. ..@gmail.comwro te in message
        >>
        >news:b1852bf a-72d2-4e06-9923-27f0401c10d9@r6 6g2000hsg.googl egroups.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

        Comment

        • BigZero

          #5
          Re: How upload works?

          On Jul 14, 2:09 pm, "sathyashra yan" <sathyashra...@ ATGmaIl.comwrot e:
          "BigZero" <vijaymajagaon. ..@gmail.comwro te in message
          >
          news:f3866381-67b5-434e-91a2-a0e28c259dc2@d7 7g2000hsb.googl egroups.com...
          >
          >
          >
          On Jul 14, 12:03 pm, "sathyashra yan" <sathyashra...@ ATGmaIl.com>
          wrote:
          "BigZero" <vijaymajagaon. ..@gmail.comwro te in message
          >
          >news:b1852bf a-72d2-4e06-9923-27f0401c10d9@r6 6g2000hsg.googl egroups.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

          Comment

          • The Natural Philosopher

            #6
            Re: How upload works?

            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.

            Comment

            • BigZero

              #7
              Re: How upload works?

              On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
              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

              Comment

              • Jerry Stuckle

                #8
                Re: How upload works?

                BigZero wrote:
                On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                >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.
                jstucklex@attgl obal.net
                =============== ===

                Comment

                • BigZero

                  #9
                  Re: How upload works?

                  On Jul 14, 4:27 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
                  BigZero wrote:
                  On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                  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...@attgl obal.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

                  Comment

                  • The Natural Philosopher

                    #10
                    Re: How upload works?

                    BigZero wrote:
                    On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                    >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

                    Comment

                    • The Natural Philosopher

                      #11
                      Re: How upload works?

                      Jerry Stuckle wrote:
                      BigZero wrote:
                      >On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                      >>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.

                      Comment

                      • Jerry Stuckle

                        #12
                        Re: How upload works?

                        BigZero wrote:
                        On Jul 14, 4:27 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
                        >BigZero wrote:
                        >>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                        >>>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...@attg lobal.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.
                        jstucklex@attgl obal.net
                        =============== ===

                        Comment

                        • BigZero

                          #13
                          Re: How upload works?

                          On Jul 14, 4:48 pm, The Natural Philosopher <a...@b.cwrot e:
                          Jerry Stuckle wrote:
                          BigZero wrote:
                          On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                          >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

                          Comment

                          • Jerry Stuckle

                            #14
                            Re: How upload works?

                            The Natural Philosopher wrote:
                            Jerry Stuckle wrote:
                            >BigZero wrote:
                            >>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                            >>>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.
                            jstucklex@attgl obal.net
                            =============== ===

                            Comment

                            • The Natural Philosopher

                              #15
                              Re: How upload works?

                              Jerry Stuckle wrote:
                              The Natural Philosopher wrote:
                              >Jerry Stuckle wrote:
                              >>BigZero wrote:
                              >>>On Jul 14, 3:06 pm, The Natural Philosopher <a...@b.cwrot e:
                              >>>>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.

                              Comment

                              Working...