defaultConfiguration(); $urlCfg->basedir = 'mydir'; $urlCfg->script = 'index.php'; // visualize the $urlCfg object var_dump( $urlCfg ); // create a new ezcUrl object from a string url and use the above $urlCfg $url = new ezcUrl( 'http://www.example.com/mydir/index.php/doc/components/view/trunk', $urlCfg ); ?>