launch X apps on a server from a php script

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

    #1

    launch X apps on a server from a php script

    Hello,
    I would like to use php - apache to work as a solution for a kiosk
    that has to be
    managed from a remote client.
    I have obtained the pc shutdown with a system() call, and now I would
    like
    to know if there is a way to launch openoffice from the php script.
    The -dislay option seems not to work..
    Suggestions?
    Thanks,
    tano
  • C. (http://symcbean.blogspot.com/)

    #2
    Re: launch X apps on a server from a php script

    On 21 Apr, 21:41, "\"\"" <gaetanoort...@ yahoo.itwrote:
    Hello,
    I would like to use php - apache to work as a solution for a kiosk
    that has to be
    managed from a remote client.
    I have obtained the pc shutdown with a system() call, and now I would
    like
    to know if there is a way to launch openoffice from the php script.
    The -dislay option seems not to work..
    Suggestions?
    Thanks,
    tano
    Sounds like a very strange way of managing a system.

    You need to learn a lot about X and how it works. Have you allowed the
    client to connect to the server (in X lingo, the server is where the
    screen mouse and keyboard are, while the client is where the program
    runs) using xhost or by transfering the cookies?

    I suggest you send follow-ups to an X or Unix newsgroup

    C.

    Comment

    • C. (http://symcbean.blogspot.com/)

      #3
      Re: launch X apps on a server from a php script

      On 22 Apr, 14:42, "C. (http://symcbean.blogsp ot.com/)"
      <colin.mckin... @gmail.comwrote :
      On 21 Apr, 21:41, "\"\"" <gaetanoort...@ yahoo.itwrote:
      >
      Hello,
      I would like to use php - apache to work as a solution for a kiosk
      that has to be
      managed from a remote client.
      I have obtained the pc shutdown with a system() call, and now I would
      like
      to know if there is a way to launch openoffice from the php script.
      The -dislay option seems not to work..
      Suggestions?
      Thanks,
      tano
      >
      Sounds like a very strange way of managing a system.
      >
      You need to learn a lot about X and how it works. Have you allowed the
      client to connect to the server (in X lingo, the server is where the
      screen mouse and keyboard are, while the client is where the program
      runs) using xhost or by transfering the cookies?
      >
      I suggest you send follow-ups to an X or Unix newsgroup
      >
      C.
      (or use sudo)

      C.

      Comment

      • \\

        #4
        Re: launch X apps on a server from a php script

        It could be strange, but I do not find a better one. (Suggestions? The
        only
        alternative I found is run apache as the same user that login
        automatically
        on gnome). I know how X works, however I was not pratical with all the
        security settings X provides (it seems that add a sudo line that allow
        to run a shell script as the X server user works, even if I have to
        run
        xhost for the user that use sudo (it seems very complicated)).
        Really, for the future I would like to know if there are more direct
        ways
        to do things like this.. :-)

        Comment

        • Claudio Corlatti

          #5
          Re: launch X apps on a server from a php script

          this is not a elegant solution but maybe you can write a link to a
          openoffice empty document, this way when the user click it (if he had
          associated open office with that extension) openoffice will open

          Comment

          Working...