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
This code works perfectly on two different servers (running PHP 5.3.2 and PHP 5.3.3). | |
Unfortunately it fails on the third one (PHP 5.3.4). | |
On very first request, just after downloading silex.phar, it produces: | |
Fatal error: Class 'Silex\Application' not found in /home/users/abc/public_html/index.php on line 7 | |
And any following request ends with: | |
Fatal error: Uncaught exception 'PharException' with message '__HALT_COMPILER(); must be declared in a phar' in /home/users/abc/public_html/silex.phar:8 |
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
#!/bin/bash | |
# .git/hooks/post-receive - refreshing working-tree after pushing to this repository | |
cd .. | |
env -i git reset --hard |
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 | |
/** | |
* Joomla - Creating date input field with datepicker | |
* | |
* @package joomla | |
* | |
* @param $value - initial field value | |
* @param $name - field name | |
* @param $id - input tag id (required by datepicker) |