Can't be that difficult, I'm just a lost newbie!

Discussion in 'PHP' started by Sleeping Troll, Sep 14, 2008.

  1. #1
    How can I pass execution from one php script to another?
     
    Sleeping Troll, Sep 14, 2008 IP
  2. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    From HTML form you can specify action attribute to point to a separate PHP file.

    However, I'm not sure what you mean by passing an execution to another script.

    You can use require/require_once or include/include_once to execute a PHP code located in a separate file.
     
    risoknop, Sep 14, 2008 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    or load the file and execute it with eval :)
     
    EricBruggema, Sep 15, 2008 IP