Browse Source

apt.php added

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
94728f74fb
  1. 24
      php/apt.php

24
php/apt.php

@ -0,0 +1,24 @@
<?php
class APT
{
function install() {
$this->cmd = 'apt-get install '.$this->pkg ;
$this->execute_local();
}
function execute_local() {
$output = array();
$res = exec( $this->cmd, $output, $return );
$this->res = $output;
print_r( $this->res );
}
}
Loading…
Cancel
Save