Ejemplo n.º 1
0
#!/usr/bin/php
<?php 
// Check the version of PHP in a separate file
// because some new syntax stuff in PHP 5.3 like
// namespaces or lambdas makes the old PHP parsers
// go into a coma.
if (!defined('PHP_VERSION_ID') or PHP_VERSION_ID < 50300) {
    die("You need PHP 5.3+ to use PieCrust.");
}
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'piecrust.php';
piecrust_chef();
Ejemplo n.º 2
0
#!/usr/bin/php
<?php 
// Check the version of PHP in a separate file
// because some new syntax stuff in PHP 5.3 like
// namespaces or lambdas makes the old PHP parsers
// go into a coma.
if (!defined('PHP_VERSION_ID') or PHP_VERSION_ID < 50300) {
    die("You need PHP 5.3+ to use PieCrust.");
}
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'piecrust.php';
$returnCode = piecrust_chef();
exit($returnCode);