How to run another script?

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

    #1

    How to run another script?

    After finishing processing on one php/tpl pair, I want to run another.
    Just displaying the template won't do because the corresponding php sets
    up many variables (based on session values) before invoking the tpl. How
    can I run the new php from the current php? If it makes any difference,
    I am running php 4.3., smarty, db2, and apache on linux,

  • steve

    #2
    Re: How to run another script?

    "Robert Stearns" wrote:[color=blue]
    > After finishing processing on one php/tpl pair, I want to run[/color]
    another.[color=blue]
    >
    > Just displaying the template won’t do because the corresponding
    > php sets
    > up many variables (based on session values) before invoking the[/color]
    tpl.[color=blue]
    > How
    > can I run the new php from the current php? If it makes any
    > difference,
    > I am running php 4.3., smarty, db2, and apache on linux,[/color]

    You can simply use php "include" to include the other script. Since
    variables from the first script carry over, there may be some variable
    collisions, function duplications that you have to take care of.

    --
    http://www.dbForumz.com/ This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: http://www.dbForumz.com/PHP-run-scri...ict132481.html
    Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=442257

    Comment

    Working...