PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Sebastian Potasiak   External program executor   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: External program executor
Execute external programs passing given arguments
Author: By
Last change: Can't delete account, so am deleting code.
Date: 9 years ago
Size: 210 bytes
 

Contents

Class file image Download
<?php

include "external.class.php";

$stream = External::program("./program", "Test")
    ->
arg("argument1")
    ->
arg("argument2")
    ->
args(array("argument3", "argument4"))
    ->
run();
   
print
$stream;

?>