user input?

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

    user input?

    Is there a way to get user input from a php script that doesn't have to do
    with html? I would like to ask the user(me) to input a directory(prefe rably
    in a gui way such as a folder selection dialog) to do some work with. Is
    this possible when running the script directly on my comp(not off a
    server(remote or local))?

    The script is a management thing that I'd like to create to help generate
    some html code. Essentially I want it to scan a dir(but don't want to hard
    code it) and have it generate a list of links for the files in that
    dir(which are images). Maybe even asking for a description for each.

    Even if it was a little shell program to change the directory(sorta like
    dos) would be much better than having to enter in the directory name by
    hand.


    Thanks,
    Jon


  • Geoff Berrow

    #2
    Re: user input?

    Message-ID: <_IvXh.74$tp5.6 1@newssvr23.new s.prodigy.netfr om Jon
    Slaughter contained the following:
    >Is there a way to get user input from a php script that doesn't have to do
    >with html? I would like to ask the user(me) to input a directory(prefe rably
    >in a gui way such as a folder selection dialog) to do some work with. Is
    >this possible when running the script directly on my comp(not off a
    >server(remot e or local))?
    >
    >The script is a management thing that I'd like to create to help generate
    >some html code. Essentially I want it to scan a dir(but don't want to hard
    >code it) and have it generate a list of links for the files in that
    >dir(which are images). Maybe even asking for a description for each.
    PHP is server side scripting so there has to be a server involved. But
    that can be a local server installed on your own machine.

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • Rami Elomaa

      #3
      Re: user input?

      "Geoff Berrow" <blthecat@ckdog .co.ukwrote in message
      news:lgst23la8p g1jqispa5seenli kodm59bfo@4ax.c om...
      Message-ID: <_IvXh.74$tp5.6 1@newssvr23.new s.prodigy.netfr om Jon
      Slaughter contained the following:
      >
      >>Is there a way to get user input from a php script that doesn't have to do
      >>with html? I would like to ask the user(me) to input a
      >>directory(pre ferably
      >>in a gui way such as a folder selection dialog) to do some work with. Is
      >>this possible when running the script directly on my comp(not off a
      >>server(remo te or local))?
      >>
      >>The script is a management thing that I'd like to create to help generate
      >>some html code. Essentially I want it to scan a dir(but don't want to hard
      >>code it) and have it generate a list of links for the files in that
      >>dir(which are images). Maybe even asking for a description for each.
      >
      PHP is server side scripting so there has to be a server involved. But
      that can be a local server installed on your own machine.

      A server is not required to use PHP CLI, but the command line interface is
      pretty limited. ;)


      --
      Rami.Elomaa@gma il.com

      "Good tea. Nice house." -- Worf


      Comment

      • Jon Slaughter

        #4
        Re: user input?


        "Geoff Berrow" <blthecat@ckdog .co.ukwrote in message
        news:lgst23la8p g1jqispa5seenli kodm59bfo@4ax.c om...
        Message-ID: <_IvXh.74$tp5.6 1@newssvr23.new s.prodigy.netfr om Jon
        Slaughter contained the following:
        >
        >>Is there a way to get user input from a php script that doesn't have to do
        >>with html? I would like to ask the user(me) to input a
        >>directory(pre ferably
        >>in a gui way such as a folder selection dialog) to do some work with. Is
        >>this possible when running the script directly on my comp(not off a
        >>server(remo te or local))?
        >>
        >>The script is a management thing that I'd like to create to help generate
        >>some html code. Essentially I want it to scan a dir(but don't want to hard
        >>code it) and have it generate a list of links for the files in that
        >>dir(which are images). Maybe even asking for a description for each.
        >
        PHP is server side scripting so there has to be a server involved. But
        that can be a local server installed on your own machine.
        >
        Um, not true.


        Comment

        • Jerry Stuckle

          #5
          Re: user input?

          Jon Slaughter wrote:
          Is there a way to get user input from a php script that doesn't have to do
          with html? I would like to ask the user(me) to input a directory(prefe rably
          in a gui way such as a folder selection dialog) to do some work with. Is
          this possible when running the script directly on my comp(not off a
          server(remote or local))?
          >
          The script is a management thing that I'd like to create to help generate
          some html code. Essentially I want it to scan a dir(but don't want to hard
          code it) and have it generate a list of links for the files in that
          dir(which are images). Maybe even asking for a description for each.
          >
          Even if it was a little shell program to change the directory(sorta like
          dos) would be much better than having to enter in the directory name by
          hand.
          >
          >
          Thanks,
          Jon
          >
          >
          Hi, Jon,

          You should be able to do it with the php-gtk package.

          I haven't actually used this package, but I did investigate it for
          another project and it looked ok.

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

          Comment

          • Jon Slaughter

            #6
            Re: user input?


            "Jerry Stuckle" <jstucklex@attg lobal.netwrote in message
            news:BIWdnfC-SK30qrLbnZ2dnUV Z_gqdnZ2d@comca st.com...
            Jon Slaughter wrote:
            >Is there a way to get user input from a php script that doesn't have to
            >do with html? I would like to ask the user(me) to input a
            >directory(pref erably in a gui way such as a folder selection dialog) to
            >do some work with. Is this possible when running the script directly on
            >my comp(not off a server(remote or local))?
            >>
            >The script is a management thing that I'd like to create to help generate
            >some html code. Essentially I want it to scan a dir(but don't want to
            >hard code it) and have it generate a list of links for the files in that
            >dir(which are images). Maybe even asking for a description for each.
            >>
            >Even if it was a little shell program to change the directory(sorta like
            >dos) would be much better than having to enter in the directory name by
            >hand.
            >>
            >>
            >Thanks,
            >Jon
            >
            Hi, Jon,
            >
            You should be able to do it with the php-gtk package.
            >
            I haven't actually used this package, but I did investigate it for another
            project and it looked ok.
            >
            Ok, thanks... I'll take a look at it and see what I come up with.

            Jon


            Comment

            Working...