[rfc] System class

From: Date: Tue, 02 Oct 2001 13:29:44 +0000
Subject: [rfc] System class
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2119@lists.php.net to get a copy of this message
What if we start with this long time ago proposed class? Methods we urgently need: ------------------------- mkdir() // creates a dir and optionally its parents if // don't exists rm() // removes files/dirs chmod() // change perms of a file Others proposals: ----------------- tar() // compress/decompress tar files gzip() // compress/decompress gzip files Usage: ------ System::rm($args) -> System::rm('-rf file1 dir1'); -> System::rm(array('-rf', 'file1', 'dir1')); If $args is a string it will be splitted and passed to Console__Getopt::getopt File in the repository: ----------------------- php4/pear/System.php Features: --------- - Platform independence - Usage similar to unix standar commands Previous discussions about this class: -------------------------------------- http://marc.theaimsgroup.com/?l=pear-dev&m=99674077406184&w=2 Tomas V.V.Cox

« previous php.pear.dev (#2119) next »