Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
System Namespace Reference
Detailed Description
File/Directory manipulation
PHP versions 4 and 5
Author
Tomas V.V.Cox
cox@i
.nosp@m.
decn
.nosp@m.
et.co
.nosp@m.
m
Copyright
1997-2009 The Authors @license
http://opensource.org/licenses/bsd-license.php
New BSD License
File available since Release 0.1 System offers cross platform compatible system functions Static functions for different operations. Should work under Unix and Windows. The names and usage has been taken from its respectively GNU commands. The functions will return (bool) false on error and will trigger the error with the PHP trigger_error() function (you can silence the error by prefixing a '@' sign after the function call, but this is not recommended practice. Instead use an error handler with set_error_handler()}). Documentation on this class you can find in:
http://pear.php.net/manual/
Example usage: if (!::rm('-r file1 dir1')) { print "could not delete file1 or dir1"; } In case you need to to pass file names with spaces, pass the params as an array: System::rm(array('-r', $file1, $dir1)); Tomas V.V. Cox
cox@i
.nosp@m.
decn
.nosp@m.
et.co
.nosp@m.
m
1997-2006 The PHP Group
http://opensource.org/licenses/bsd-license.php
New BSD License Release: 1.10.18
http://pear.php.net/package/PEAR
Class available since Release 0.1
System
Generated by
1.17.0