How do I invoke a php file into another php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjeev1984chadha
    New Member
    • May 2008
    • 2

    How do I invoke a php file into another php file

    i have this code running on command prompt

    php export.php arg1 arg2 arg3 arg4 arg5 arg6

    a command with 6 arguments
    now i want that on click of a link i.e. href , the php(exportdata. php) which runs on command and which invokes a export.php, now it should run in exportdata.php

    In short i want that in exportdata.php export.php should run by passing those 6 arguments.
    please can someone help me with this asap..
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi. Welcome to Bytes!

    Check out Program Execution in the manual.
    You should be able to have your PHP scripts execute the command just like you would in the command prompt by using one of those functions.

    Comment

    Working...