This file contains hidden or 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
| ; Configurations | |
| db_host = 'localhost' | |
| db_user = 'zend' | |
| db_passwd = '' | |
| db_name = 'test' | |
| db_driver = 'mysql' | |
| ;db_port = 3306 | |
| ;db_charset = 'utf8' | |
| dsn = '[db_driver]:host=[db_host];dbname=[db_name]' | |
| dsn = 'sqlite::memory:' |
This file contains hidden or 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 | |
| // Define the 'class' class | |
| $class = (new Obj) | |
| ->fn('new', function() { | |
| $newClass = (new Obj($this->methods)) | |
| ->fn('new', function() { | |
| $obj = new Obj($this->imethods); | |
| call_user_func_array(array($obj, 'init'), func_get_args()); | |
| return $obj; |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # Downloads and install latest APC extension to OSX php (Zend Server). | |
| # Tested under OSX 10.6.7, more feedback is appreciated. | |
| # | |
| # OSX is 64bit but the PHP binary in Zend Server is compiled in 32bit mode only, | |
| # so to have APC working with Zend Server on OSX statically compiling it with default | |
| # recommended flags and forced i386 architecture. | |
| # I suppose that Zend Server's binary path is already into your PATH variable and it | |
| # is used before the native PHP binary bundled with OSX. |
This file contains hidden or 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
| #!/bin/sh | |
| # Migrates a SVN repository to a git repository. | |
| # | |
| # Author: Augusto Pascutti <augusto@phpsp.org.br> | |
| COMMAND=$0; | |
| SVN=`which svn 2> /dev/null`; | |
| GIT=`which git 2> /dev/null`; | |
| READER=""; | |
| RETURN=""; |
This file contains hidden or 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 | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
NewerOlder