Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002

    Question Unanswered: Call script or program from PHP?

    Is it possible to call a script from PHP? Better still, can PHP be used to call a COBOL program if the program is resides in the same UNIX environment as the web page?



  2. #2
    Join Date
    Jul 2002
    Look into the exec() and similar functions. You can use it to execute a shell script or system command: so in theory, anything you can add to a shell script, you can execute from PHP.

    It's a little dangerous however, and I didn't recommend you did it if someone manages to sneak rm -r /* into the script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts