main program call another main [GET]

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

    main program call another main [GET]

    Hi all

    is it possible to call from a main program another one the same as it is
    done by the browser?

    If I begin I am able to do http://server/main.php?name=" test" in the
    browsers URL.

    Could I do such a submission inside of a program and how?


    Reimar







    --
    Reimar Bauer

    Institut fuer Stratosphaerisc he Chemie (ICG-I)
    Forschungszentr um Juelich
    email: R.Bauer@fz-juelich.de
    -------------------------------------------------------------------
    a IDL library at ForschungsZentr um Juelich

    =============== =============== =============== =============== =======
  • Reimar Bauer

    #2
    Re: main program call another main [GET]

    Reimar Bauer wrote:[color=blue]
    > Hi all
    >
    > is it possible to call from a main program another one the same as it is
    > done by the browser?
    >
    > If I begin I am able to do http://server/main.php?name=" test" in the
    > browsers URL.
    >
    > Could I do such a submission inside of a program and how?
    >
    >
    > Reimar
    >
    >[/color]

    I got it myself

    Reimar
    --
    Reimar Bauer

    Institut fuer Stratosphaerisc he Chemie (ICG-I)
    Forschungszentr um Juelich
    email: R.Bauer@fz-juelich.de
    -------------------------------------------------------------------
    a IDL library at ForschungsZentr um Juelich

    =============== =============== =============== =============== =======

    Comment

    • Tim Van Wassenhove

      #3
      Re: main program call another main [GET]

      In article <c78mvm$ah5g$1@ zam602.zam.kfa-juelich.de>, Reimar Bauer wrote:[color=blue]
      > Reimar Bauer wrote:[color=green]
      >> Hi all
      >>
      >> is it possible to call from a main program another one the same as it is
      >> done by the browser?
      >>
      >> If I begin I am able to do http://server/main.php?name=" test" in the
      >> browsers URL.
      >>
      >> Could I do such a submission inside of a program and how?[/color]
      >
      > I got it myself[/color]

      It's always nice if you tell what the solution was then ;)
      I suppose you found about curl.

      --

      Comment

      • Reimar Bauer

        #4
        Re: main program call another main [GET]

        Tim Van Wassenhove wrote:
        [color=blue]
        > In article <c78mvm$ah5g$1@ zam602.zam.kfa-juelich.de>, Reimar Bauer wrote:[color=green]
        >> Reimar Bauer wrote:[color=darkred]
        >>> Hi all
        >>>
        >>> is it possible to call from a main program another one the same as it is
        >>> done by the browser?
        >>>
        >>> If I begin I am able to do http://server/main.php?name=" test" in the
        >>> browsers URL.
        >>>
        >>> Could I do such a submission inside of a program and how?[/color]
        >>
        >> I got it myself[/color]
        >
        > It's always nice if you tell what the solution was then ;)
        > I suppose you found about curl.
        >[/color]

        You are right

        the main program does previously only ask if name was submitted.

        If the main.php is included into an other program I have had $name already
        so the only thing to change was to add an "or" statement.

        previous:
        if (strlen($_GET["name"])>0){

        ............... ......

        now:
        if ((strlen($_GET["name"])>0) or (strlen($name) > 0)){



        Reimar



        --
        Forschungszentr um Juelich
        email: R.Bauer@fz-juelich.de

        =============== =============== =============== =============== ======
        a IDL library at ForschungsZentr um Juelich


        Comment

        Working...