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 | |
use Guzzle\Http\Url; | |
use Nette\Diagnostics\Debugger; | |
use Nette\Utils\Strings; | |
use React\Http\Request; | |
use React\Http\Response; | |
use React\SocketClient\ConnectionManager; | |
use React\Stream\Stream; |
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 | |
namespace AmphibianDemo\Model; | |
use FSHL\Highlighter; | |
use Texy; | |
use TexyHandlerInvocation; | |
use TexyHtml; | |
use TexyModifier; |
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 | |
class HomepagePresenterTest extends TestCase | |
{ | |
public function testLogout() | |
{ | |
$presenter = new HomepagePresenter; | |
$this->login(); | |
$this->assertTrue(Environment::getUser()->isLoggedIn()); |
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 apache2 php5-cgi libapache2-mod-fastcgi | |
cd /etc/apache2/mods-enabled/ | |
sudo ln -s ../mods-available/actions.load | |
sudo ln -s ../mods-available/actions.conf | |
/etc/apache2/mods-enabled/fastcgi.conf: | |
==================== | |
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi |
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 | |
require_once(__DIR__ . '/dibi.min.php'); | |
dibi::connect(array( | |
'driver' => 'postgre', | |
'host' => 'localhost', | |
'dbname' => 'database', | |
'username' => 'username', | |
'password' => '***', |
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 | |
require_once(__DIR__ . '/dibi.min.php'); | |
dibi::connect(array( | |
'driver' => 'postgre', | |
'host' => 'localhost', | |
'dbname' => 'database', | |
'user' => 'username', | |
'password' => '***', |
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 | |
echo preg_replace(array( | |
'~\[b\](\w+)\[/b\]~', | |
'~\[i\](\w+)\[/i\]~i', | |
'~\[u\](\w+)\[/u\]~i', | |
'~\[s\](\w+)\[/s\]~i', | |
'~\[img\](\w+)\[/img\]~i', | |
'~\[url=(\w+)\](\w+)\[/url\]~i', | |
'~\[email\](\w+)\[/email\]~i', |
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
I am writing my bachelor thesis, | |
I am working hardly as a developer, | |
my first CMS was called Nemesis. | |
it didn't work much better. | |
I am stuck with the PHP language, | |
I see ASP as an epic failage, | |
I tried Java EE last month, | |
that's when I needed to change my cloth. |
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 | |
namespace Tools; | |
use Nette\Debug; | |
use Nette\Environment; | |
use Nette\Finder; | |
/** | |
* Shows exceptions thrown in CLI mode in browser. |
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 | |
namespace Proj; | |
use Nette\Debug, | |
Nette\Environment, | |
PDO, | |
NotORM, | |
NotOrmPanel, | |
NotORM_Structure_Convention; |
OlderNewer