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 | |
class Torrent | |
{ | |
public function scrape(array $announce = [ ] , $hash_info = null) | |
{ | |
$r = [ | |
'seeders' => 0 , | |
'leechers' => 0 |
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
<pre><?php | |
$di = new Phalcon\DI\FactoryDefault(); | |
\Phalcon\Tag::getEscaperService(); | |
$string = 'Русский'; | |
Phalcon\Tag::setDefault("name", $string); | |
echo $string; |
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 | |
// -- test1 --------- | |
// throw Phalcon\Tag\Exception: A dependency injector container is required to obtain the "escaper" service | |
Phalcon\Tag::setDefault("name", "test"); | |
echo Phalcon\Tag::getValue("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 | |
error_reporting( E_ALL | E_NOTICE | E_STRICT ); | |
/** | |
* SQL for model: | |
CREATE TABLE `temp` ( | |
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY | |
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; | |
*/ |
NewerOlder