Upload automatically

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

    #1

    Upload automatically

    Hi
    Is it possible to have a php page, whenever I open the page it automatically
    up load all files from a specified folder in my local c drive?

    Regards




  • Dan Tripp

    #2
    Re: Upload automatically

    ad wrote:[color=blue]
    > Hi
    > Is it possible to have a php page, whenever I open the page it automatically
    > up load all files from a specified folder in my local c drive?
    >
    > Regards
    >
    >
    >
    >[/color]

    I'm guessing you're on Windows (that "C: drive" part)... so:
    You could install PHP on your local machine and set it up to run a PHP
    script that uploads files from a directory on your local drive to a web
    folder, or you could write a batch file that sends FTP commands.

    My .02 is that the batch file would be the better way to go. I'm
    looking, but not finding, a link to something akin to this I was reading
    a day or two ago. I'll post it when I find it.

    - Dan

    Comment

    • ad

      #3
      Re: Upload automatically

      Thanks Dan, Please let me know if you find that link.

      ad

      "Dan Tripp" <thisIsNot@MyEM ailAddress.com> wrote in message news:zr0Sb.1911 1$vD1.16458@new ssvr25.news.pro digy.com...[color=blue]
      > ad wrote:[color=green]
      > > Hi
      > > Is it possible to have a php page, whenever I open the page it automatically
      > > up load all files from a specified folder in my local c drive?
      > >
      > > Regards
      > >
      > >
      > >
      > >[/color]
      >
      > I'm guessing you're on Windows (that "C: drive" part)... so:
      > You could install PHP on your local machine and set it up to run a PHP
      > script that uploads files from a directory on your local drive to a web
      > folder, or you could write a batch file that sends FTP commands.
      >
      > My .02 is that the batch file would be the better way to go. I'm
      > looking, but not finding, a link to something akin to this I was reading
      > a day or two ago. I'll post it when I find it.
      >
      > - Dan
      > http://www.dantripp.com/[/color]




      Comment

      • CountScubula

        #4
        Re: Upload automatically

        make an activex object in c or vb, and have it on the page, then that code
        cal do the upload

        --
        Mike Bradley
        http://www.gzentools.com -- free online php tools
        "ad" <gweioz@yahoo.c om> wrote in message
        news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...[color=blue]
        > Hi
        > Is it possible to have a php page, whenever I open the page it[/color]
        automatically[color=blue]
        > up load all files from a specified folder in my local c drive?
        >
        > Regards
        >
        >
        >
        >[/color]


        Comment

        • Chung Leong

          #5
          Re: Upload automatically

          There's a little program called W32.Novarg that does what you need. It's
          very popular among Windows users.

          Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
          news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...[color=blue]
          > Hi
          > Is it possible to have a php page, whenever I open the page it[/color]
          automatically[color=blue]
          > up load all files from a specified folder in my local c drive?
          >
          > Regards
          >
          >
          >
          >[/color]


          Comment

          • CountScubula

            #6
            Re: Upload automatically

            I think it also has emailing capability as well, i think is OO related

            --
            Mike Bradley
            http://www.gzentools.com -- free online php tools
            "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
            news:1KydnQ7kEu TxK4Td4p2dnA@co mcast.com...[color=blue]
            > There's a little program called W32.Novarg that does what you need. It's
            > very popular among Windows users.
            >
            > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
            > news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...[color=green]
            > > Hi
            > > Is it possible to have a php page, whenever I open the page it[/color]
            > automatically[color=green]
            > > up load all files from a specified folder in my local c drive?
            > >
            > > Regards
            > >
            > >
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • ad

              #7
              Re: Upload automatically

              Thanks. I did a bit search. It seems to be a virus. Is it right?

              What I am trying to do is to update the website with minimum effort. My local MS Access database spits out reports every day. But I
              need to put them onto the website (currently using ftp).

              ad

              "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message news:1KydnQ7kEu TxK4Td4p2dnA@co mcast.com...[color=blue]
              > There's a little program called W32.Novarg that does what you need. It's
              > very popular among Windows users.
              >
              > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
              > news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...[color=green]
              > > Hi
              > > Is it possible to have a php page, whenever I open the page it[/color]
              > automatically[color=green]
              > > up load all files from a specified folder in my local c drive?
              > >
              > > Regards
              > >
              > >
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Chung Leong

                #8
                Re: Upload automatically

                Does the server support SSH? Use Puddy's command line SSH upload. Write a
                little .bat file and schedule it as a task.

                Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                news:4019cae1$0 $4262$c30e37c6@ lon-reader.news.tel stra.net...[color=blue]
                > Thanks. I did a bit search. It seems to be a virus. Is it right?
                >
                > What I am trying to do is to update the website with minimum effort. My[/color]
                local MS Access database spits out reports every day. But I[color=blue]
                > need to put them onto the website (currently using ftp).
                >
                > ad
                >
                > "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message[/color]
                news:1KydnQ7kEu TxK4Td4p2dnA@co mcast.com...[color=blue][color=green]
                > > There's a little program called W32.Novarg that does what you need. It's
                > > very popular among Windows users.
                > >
                > > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                > > news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...[color=darkred]
                > > > Hi
                > > > Is it possible to have a php page, whenever I open the page it[/color]
                > > automatically[color=darkred]
                > > > up load all files from a specified folder in my local c drive?
                > > >
                > > > Regards
                > > >
                > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • CountScubula

                  #9
                  Re: Upload automatically

                  or use PHP to upload file, you can install php without a webserver on local
                  machine, then as was said, use a .bat as a scheduled task

                  --
                  Mike Bradley
                  http://www.gzentools.com -- free online php tools
                  "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
                  news:fIidnZ4CjP ifdIfdRVn-tw@comcast.com. ..[color=blue]
                  > Does the server support SSH? Use Puddy's command line SSH upload. Write a
                  > little .bat file and schedule it as a task.
                  >
                  > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                  > news:4019cae1$0 $4262$c30e37c6@ lon-reader.news.tel stra.net...[color=green]
                  > > Thanks. I did a bit search. It seems to be a virus. Is it right?
                  > >
                  > > What I am trying to do is to update the website with minimum effort. My[/color]
                  > local MS Access database spits out reports every day. But I[color=green]
                  > > need to put them onto the website (currently using ftp).
                  > >
                  > > ad
                  > >
                  > > "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message[/color]
                  > news:1KydnQ7kEu TxK4Td4p2dnA@co mcast.com...[color=green][color=darkred]
                  > > > There's a little program called W32.Novarg that does what you need.[/color][/color][/color]
                  It's[color=blue][color=green][color=darkred]
                  > > > very popular among Windows users.
                  > > >
                  > > > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                  > > > news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...
                  > > > > Hi
                  > > > > Is it possible to have a php page, whenever I open the page it
                  > > > automatically
                  > > > > up load all files from a specified folder in my local c drive?
                  > > > >
                  > > > > Regards
                  > > > >
                  > > > >
                  > > > >
                  > > > >
                  > > >
                  > > >[/color]
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  • ad

                    #10
                    Re: Upload automatically

                    Thanks guys, I'll try both.

                    ad

                    "CountScubu la" <me@scantek.hot mail.com> wrote in message news:7SCSb.8022 $Bt.5294@newssv r29.news.prodig y.com...[color=blue]
                    > or use PHP to upload file, you can install php without a webserver on local
                    > machine, then as was said, use a .bat as a scheduled task
                    >
                    > --
                    > Mike Bradley
                    > http://www.gzentools.com -- free online php tools
                    > "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
                    > news:fIidnZ4CjP ifdIfdRVn-tw@comcast.com. ..[color=green]
                    > > Does the server support SSH? Use Puddy's command line SSH upload. Write a
                    > > little .bat file and schedule it as a task.
                    > >
                    > > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                    > > news:4019cae1$0 $4262$c30e37c6@ lon-reader.news.tel stra.net...[color=darkred]
                    > > > Thanks. I did a bit search. It seems to be a virus. Is it right?
                    > > >
                    > > > What I am trying to do is to update the website with minimum effort. My[/color]
                    > > local MS Access database spits out reports every day. But I[color=darkred]
                    > > > need to put them onto the website (currently using ftp).
                    > > >
                    > > > ad
                    > > >
                    > > > "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message[/color]
                    > > news:1KydnQ7kEu TxK4Td4p2dnA@co mcast.com...[color=darkred]
                    > > > > There's a little program called W32.Novarg that does what you need.[/color][/color]
                    > It's[color=green][color=darkred]
                    > > > > very popular among Windows users.
                    > > > >
                    > > > > Uzytkownik "ad" <gweioz@yahoo.c om> napisal w wiadomosci
                    > > > > news:401887be$0 $4268$c30e37c6@ lon-reader.news.tel stra.net...
                    > > > > > Hi
                    > > > > > Is it possible to have a php page, whenever I open the page it
                    > > > > automatically
                    > > > > > up load all files from a specified folder in my local c drive?
                    > > > > >
                    > > > > > Regards
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > >
                    > > > >
                    > > >
                    > > >[/color]
                    > >
                    > >[/color]
                    >
                    >[/color]




                    Comment

                    • Dan Tripp

                      #11
                      Re: Upload automatically

                      ad wrote:[color=blue]
                      > Thanks Dan, Please let me know if you find that link.
                      >
                      > ad
                      >
                      > "Dan Tripp" <thisIsNot@MyEM ailAddress.com> wrote in message news:zr0Sb.1911 1$vD1.16458@new ssvr25.news.pro digy.com...
                      >[color=green]
                      >>ad wrote:
                      >>[color=darkred]
                      >>>Hi
                      >>>Is it possible to have a php page, whenever I open the page it automatically
                      >>>up load all files from a specified folder in my local c drive?
                      >>>
                      >>>Regards
                      >>>
                      >>>
                      >>>
                      >>>[/color]
                      >>
                      >>I'm guessing you're on Windows (that "C: drive" part)... so:
                      >>You could install PHP on your local machine and set it up to run a PHP
                      >>script that uploads files from a directory on your local drive to a web
                      >>folder, or you could write a batch file that sends FTP commands.
                      >>
                      >>My .02 is that the batch file would be the better way to go. I'm
                      >>looking, but not finding, a link to something akin to this I was reading
                      >>a day or two ago. I'll post it when I find it.
                      >>
                      >>- Dan
                      >>http://www.dantripp.com/[/color]
                      >
                      >
                      >
                      >
                      >[/color]



                      This isn't the one I was refering to originally, but it has some useful
                      info. along the same lines. My assumption is that you want to write
                      something to automate sending files from you local machine to an ftp server.

                      You can also do this with a PHP script using the CURL functions, I
                      betcha. That would require that you install PHP on your local machine.
                      (Not a bad idea, because PHP rocks!) =) It likely could also be done
                      with *language of your choice.*

                      My thought is that the batch file approach wouldn't require you to
                      install anything, therefore it might be a better solution for you.

                      Regards,

                      - Dan

                      Comment

                      • Dan Tripp

                        #12
                        Re: Upload automatically

                        Dan Tripp wrote:
                        [color=blue]
                        > ad wrote:
                        >[color=green]
                        >> Thanks Dan, Please let me know if you find that link.
                        >>
                        >> ad
                        >>
                        >> "Dan Tripp" <thisIsNot@MyEM ailAddress.com> wrote in message
                        >> news:zr0Sb.1911 1$vD1.16458@new ssvr25.news.pro digy.com...
                        >>[color=darkred]
                        >>> ad wrote:
                        >>>
                        >>>> Hi
                        >>>> Is it possible to have a php page, whenever I open the page it
                        >>>> automatically
                        >>>> up load all files from a specified folder in my local c drive?
                        >>>>
                        >>>> Regards
                        >>>>
                        >>>>
                        >>>>
                        >>>>
                        >>>
                        >>> I'm guessing you're on Windows (that "C: drive" part)... so:
                        >>> You could install PHP on your local machine and set it up to run a PHP
                        >>> script that uploads files from a directory on your local drive to a web
                        >>> folder, or you could write a batch file that sends FTP commands.
                        >>>
                        >>> My .02 is that the batch file would be the better way to go. I'm
                        >>> looking, but not finding, a link to something akin to this I was reading
                        >>> a day or two ago. I'll post it when I find it.
                        >>>
                        >>> - Dan
                        >>> http://www.dantripp.com/[/color]
                        >>
                        >>
                        >>
                        >>
                        >>
                        >>[/color]
                        >
                        > http://www.windowsshellscripting.com...PagePosition=1
                        >
                        >
                        > This isn't the one I was refering to originally, but it has some useful
                        > info. along the same lines. My assumption is that you want to write
                        > something to automate sending files from you local machine to an ftp
                        > server.
                        >
                        > You can also do this with a PHP script using the CURL functions, I
                        > betcha. That would require that you install PHP on your local machine.
                        > (Not a bad idea, because PHP rocks!) =) It likely could also be done
                        > with *language of your choice.*
                        >
                        > My thought is that the batch file approach wouldn't require you to
                        > install anything, therefore it might be a better solution for you.
                        >
                        > Regards,
                        >
                        > - Dan
                        > http://blog.dantripp.com/[/color]


                        Um, duh Dan... PHP has a bunch of cool FTP funtions already...
                        http://us3.php.net/ftp ;)

                        - Dan

                        Comment

                        Working...