This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
closure/lib/closure/bin/calcdeps.py -i app/bootstrap.js -p closure/lib -p app/ -o script > public/js/app-calc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
closure/lib/closure/bin/calcdeps.py -i app/bootstrap.js -p closure/lib -p app/ -o compiled -c closure/utils/compiler.jar > public/js/app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Name this file .routing.php and place in webroot | |
//originally written by Ralph Schindler http://news.php.net/php.internals/53870 | |
//If using zf, this is a convenient place to define the dev environment | |
define('APPLICATION_ENV', 'development'); | |
//If the file exists or is an obvious static resource, do nothing by returning false. | |
//Route all other requests through index.php. | |
if ( preg_match('/\.(?:png|jpg|jpeg|gif|ico)$/', $_SERVER['REQUEST_URI']) || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
mkdir apps | |
mkdir apps/php | |
cd apps/php | |
wget http://downloads.php.net/stas/php-5.4.0alpha3.tar.bz2 | |
tar -jxvf php-5.4.0alpha3.tar.bz2 | |
cd php-5.4.0alpha3 | |
./configure | |
(For me, configure complained about missing libxml2) | |
sudo apt-get install libxml2-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/apps/php/php-5.4.0alpha3/sapi/cli/php -v | |
PHP 5.4.0alpha3 (cli) (built: Aug 26 2011 19:16:20) | |
Copyright (c) 1997-2011 The PHP Group | |
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd (into your dev directory) | |
zf create project quickstart | |
cd quickstart/library | |
ln -s /usr/share/php/libzend-framework-php/Zend . | |
cd .. | |
~/apps/php/php-5.4.0alpha3/sapi/cli/php -S localhost:8000 public/index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/apps/php/php-5.4.0alpha3/sapi/cli/php -S localhost:8000 -t ./public ./public/.routing.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install uuid-dev | |
sudo pecl install uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$uuid = uuid_create(); | |
echo $uuid; | |
$uuid_bin = uuid_parse( $uuid ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __autoload( $class_name ) | |
{ | |
require_once $class_name . '.php'; | |
} |
OlderNewer