Filebrowse prompt for local script

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

    Filebrowse prompt for local script

    Hi NG!

    I am using a couple of local scripts without webserver.
    Is there a way to make the script open a filebrowse prompt, so that the user
    can select some file as input?

    --
    Freundliche Grüße,
    Franz Marksteiner

  • Jerry Stuckle

    #2
    Re: Filebrowse prompt for local script

    Franz Marksteiner wrote:
    Hi NG!
    >
    I am using a couple of local scripts without webserver.
    Is there a way to make the script open a filebrowse prompt, so that the
    user can select some file as input?
    >
    Not without some type of GUI.

    Make life easy on yourself. Install WAMP on your system and get a
    webserver.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Franz Marksteiner

      #3
      Re: Filebrowse prompt for local script

      Jerry Stuckle wrote:
      Franz Marksteiner wrote:
      >Hi NG!
      >>
      >I am using a couple of local scripts without webserver.
      >Is there a way to make the script open a filebrowse prompt, so that
      >the user can select some file as input?
      >>
      >
      Not without some type of GUI.
      >
      Make life easy on yourself. Install WAMP on your system and get a
      webserver.
      I thought since I can call system commands, there should be a way to browse
      for a file...

      --
      Freundliche Grüße,
      Franz Marksteiner

      Comment

      • Jerry Stuckle

        #4
        Re: Filebrowse prompt for local script

        Franz Marksteiner wrote:
        Jerry Stuckle wrote:
        >Franz Marksteiner wrote:
        >>Hi NG!
        >>>
        >>I am using a couple of local scripts without webserver.
        >>Is there a way to make the script open a filebrowse prompt, so that
        >>the user can select some file as input?
        >>>
        >>
        >Not without some type of GUI.
        >>
        >Make life easy on yourself. Install WAMP on your system and get a
        >webserver.
        >
        I thought since I can call system commands, there should be a way to
        browse for a file...
        >
        So which system command gives a filebrowse prompt?

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Franz Marksteiner

          #5
          Re: Filebrowse prompt for local script

          Jerry Stuckle wrote:
          Franz Marksteiner wrote:
          >Jerry Stuckle wrote:
          >>Franz Marksteiner wrote:
          >>>Hi NG!
          >>>>
          >>>I am using a couple of local scripts without webserver.
          >>>Is there a way to make the script open a filebrowse prompt, so that
          >>>the user can select some file as input?
          >>>>
          >>>
          >>Not without some type of GUI.
          >>>
          >>Make life easy on yourself. Install WAMP on your system and get a
          >>webserver.
          >>
          >I thought since I can call system commands, there should be a way to
          >browse for a file...
          >>
          >
          So which system command gives a filebrowse prompt?
          If I knew it I wouldn`t ask ...
          But when selecting a file within an HTML form, the filebrowser is a local
          application.

          --
          Freundliche Grüße,
          Franz Marksteiner

          Comment

          • Jerry Stuckle

            #6
            Re: Filebrowse prompt for local script

            Franz Marksteiner wrote:
            Jerry Stuckle wrote:
            >Franz Marksteiner wrote:
            >>Jerry Stuckle wrote:
            >>>Franz Marksteiner wrote:
            >>>>Hi NG!
            >>>>>
            >>>>I am using a couple of local scripts without webserver.
            >>>>Is there a way to make the script open a filebrowse prompt, so that
            >>>>the user can select some file as input?
            >>>>>
            >>>>
            >>>Not without some type of GUI.
            >>>>
            >>>Make life easy on yourself. Install WAMP on your system and get a
            >>>webserver.
            >>>
            >>I thought since I can call system commands, there should be a way to
            >>browse for a file...
            >>>
            >>
            >So which system command gives a filebrowse prompt?
            >
            If I knew it I wouldn`t ask ...
            But when selecting a file within an HTML form, the filebrowser is a
            local application.
            >
            That's because there isn't one for command line applications. Strictly
            command line.

            And yes, the browser is a local application - but it's being served from
            a webserver, which is what's executing the PHP code. If you want to use
            the features of the browser, you need a server to handle the PHP end.
            The server can be local.

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • Jerry Stuckle

              #7
              Re: Filebrowse prompt for local script

              Jerry Stuckle wrote:
              Franz Marksteiner wrote:
              >Jerry Stuckle wrote:
              >>Franz Marksteiner wrote:
              >>>Jerry Stuckle wrote:
              >>>>Franz Marksteiner wrote:
              >>>>>Hi NG!
              >>>>>>
              >>>>>I am using a couple of local scripts without webserver.
              >>>>>Is there a way to make the script open a filebrowse prompt, so that
              >>>>>the user can select some file as input?
              >>>>>>
              >>>>>
              >>>>Not without some type of GUI.
              >>>>>
              >>>>Make life easy on yourself. Install WAMP on your system and get a
              >>>>webserver .
              >>>>
              >>>I thought since I can call system commands, there should be a way to
              >>>browse for a file...
              >>>>
              >>>
              >>So which system command gives a filebrowse prompt?
              >>
              >If I knew it I wouldn`t ask ...
              >But when selecting a file within an HTML form, the filebrowser is a
              >local application.
              >>
              >
              That's because there isn't one for command line applications. Strictly
              command line.
              >
              I meant "strictly text". :-)



              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstucklex@attgl obal.net
              =============== ===

              Comment

              • Richard

                #8
                Re: Filebrowse prompt for local script


                "Franz Marksteiner" <franzmarkstein er@gmail.comwro te in message
                news:frtsoq$1r6 $00$1@news.t-online.com...
                Hi NG!
                >
                I am using a couple of local scripts without webserver.
                Is there a way to make the script open a filebrowse prompt, so that
                the user can select some file as input?
                >
                Hi Franz,
                maybe this works for you;




                R.


                Comment

                • Franz Marksteiner

                  #9
                  Re: Filebrowse prompt for local script

                  Richard wrote:
                  "Franz Marksteiner" <franzmarkstein er@gmail.comwro te in message
                  news:frtsoq$1r6 $00$1@news.t-online.com...
                  >Hi NG!
                  >>
                  >I am using a couple of local scripts without webserver.
                  >Is there a way to make the script open a filebrowse prompt, so that
                  >the user can select some file as input?
                  >>
                  >
                  Hi Franz,
                  maybe this works for you;
                  >
                  http://gtk.php.net/faq.php
                  Hi Richard,

                  I already bumped into this. Looks a little overhead, but it`s still on my
                  ToReviewList ;-)
                  I appreciate the effort!

                  --
                  Freundliche Grüße,
                  Franz Marksteiner

                  Comment

                  • AnrDaemon

                    #10
                    Re: Filebrowse prompt for local script

                    Greetings, Franz Marksteiner.
                    In reply to Your message dated Thursday, March 20, 2008, 18:36:11,
                    I am using a couple of local scripts without webserver.
                    Is there a way to make the script open a filebrowse prompt, so that the user
                    can select some file as input?
                    <?php

                    dl('php_win32st d');
                    $res = win_browse_file (true, null, null, null, array('Text files (*.txt)' ='*.txt'));

                    print_r($res);

                    ?>

                    Be aware of the fact that result of the function will be in ANSI encoding.


                    --
                    Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

                    Comment

                    Working...