- substr: documentation ( source)
- strrpos: documentation ( source)
<?php
echo substr('/usr/local/zend/apache2/htdocs/wordpress/wp-content/plugins/all-in-one-event-calendar/app/config/exception.php', 0, strrpos('/usr/local/zend/apache2/htdocs/wordpress/wp-content/plugins/all-in-one-event-calendar/app/config/exception.php', '.'));