Ein Teil einer Klasse meiner kleinen Lib. ;)Zwischenablage von vitus37 schrieb:PHP:class FILE { protected $_filename; protected $_content; protected $_ext; protected $_dir; protected $_path; protected $_loaded = false; public function __construct( $path = '' ) { if( !empty( $path ) ) $this->open( $path ); } public function open( $path ) { if( FILE::fileExists( $path ) ) { $this->loadInfo( $path ); $this->_content = file_get_contents( $path ); $this->_path = $path; $this->_loaded = true; return true; } else return false; }