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 | |
| /* | |
| * Template of virtual host | |
| */ | |
| $template = "<VirtualHost *:80>\n"; | |
| $template .= "ServerName {$argv[1]}\n"; | |
| $template .= "DocumentRoot {$argv[2]}\n"; | |
| $template .= "<Directory {$argv[2]}>\n"; | |
| $template .= " Options Indexes FollowSymLinks MultiViews\n"; |
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 | |
| if (!session_id()) { session_start(); } | |
| App::import('Vendor', 'Facebook'); | |
| class FacebookCake | |
| { | |
| public function __construct($name = '') | |
| { |
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 | |
| var_dump(exec('xvfb-run /usr/bin/wkhtmltopdf http://google.com /var/www/yep.test.' . time())); | |
| $test = array( | |
| array('pipe', 'r'), | |
| array('pipe', 'w'), | |
| array('pipe', 'w'), | |
| ); |
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
| CREATE TABLE `countries` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `printable_name` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM AUTO_INCREMENT=240 DEFAULT CHARSET=utf8; |
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 | |
| App::uses('Model', 'Model'); | |
| class AppModel extends Model { | |
| public $actsAs = array('Containable'); | |
| public $recursive = -1; | |
| public function getErrors() { | |
| return $this->validationErrors; |
NewerOlder