-
Notifications
You must be signed in to change notification settings - Fork 0
Cookbook
philip edited this page Sep 13, 2010
·
1 revision
A cookbook of things you might want to do with PhpVersionBuilder.
- Open inc/config.php
- Change $php_versions to array(‘5.3.0’);
- Open inc/config.php
- It’ll be something like
$config_options_all = array( '--disable-all', '--enable-mbstring', '--disable-cgi', '--enable-cli', );
- Open inc/config.php
- Change $config_options_versions to something like:
$config_options_versions = array( '5.2' => '--with-foo', '5.3' => '--enable-bar', );
- Open inc/config.php
- Change the following to something like:
define ('PRE_CONFIGURE', 'EXTRA_FLAGS=-lfoo');
- Place your code in a PHP file
- Use execute_php.php that’s located inside PhpVersionBuilder
- Execute it, someone what like the following:
$ ./execute_php.php mycode.php html > output.html - Then you might copy it to docroot and view, or open using ‘open’ or ‘firefox’ like so:
$ firefox output.html $ open output.html - Note: Several test PHP scripts to test output live in scripts/out/