/ Published in: PHP
Include Path PHP 5 class.
Usage:
$path = new fuselogic_include_path();
$path->add('/home/ekobudi/www/fuselogic');
$path->add('/home/ekobudi/www/pear');
$path->remove('/home/ekobudi/www/old_fuselgic');
Usage:
$path = new fuselogic_include_path();
$path->add('/home/ekobudi/www/fuselogic');
$path->add('/home/ekobudi/www/pear');
$path->remove('/home/ekobudi/www/old_fuselgic');
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class fuselogic_include_path { function __construct($path = null) { { $this->setting_name = 'include_path'; $this->_get_separator(); } } function add($variables) { { }else { } $this->clear(); $this->_unlink('.'); foreach($unique as $variable) { if($variable !== '.') $this->_link($variable); } } function remove($variables) { { foreach($variables as $variable) $this->_unlink($variable); }else { $this->_unlink($variables); } } function clear() { } function to_array() { } function get_setting($setting = '') { return $setting; } function _link($directory = '') { { $setting = $this->get_setting(); $setting .= $this->_separator.$directory; } } function _get_separator() { if($count > 0) { $this->_separator = ';'; }else{ $this->_separator = ':'; } } function _unlink($directory = '') { { $setting = $this->get_setting(); $setting .= $this->_separator.$this->_separator; } } } ?>
URL: http://fuselogic.haltebis.com