Location: PHPKode > scripts > XCS Parser > xcs-parser/examples/norequire.php
<?php
/**
 * Forbidden external files access test/demo file for
 * XcsParser class.
 */

error_reporting(E_ALL | E_STRICT);
include '../lib/XcsParser_class.php';

$css = file_get_contents('../etc/style.css');
$sp = new XcsParser($css);

echo $sp->setAllowExternalFiles(false)->parse()->getCss();
?>
Return current item: XCS Parser