Skip to content

Instantly share code, notes, and snippets.

@skremiec
skremiec / datepicker.php
Created January 9, 2010 14:08
[Joomla] Creating date input field with datepicker
<?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)
@skremiec
skremiec / gist:275006
Created January 12, 2010 08:22
[Git] Hook updating working tree after push
#!/bin/bash
# .git/hooks/post-receive - refreshing working-tree after pushing to this repository
cd ..
env -i git reset --hard
@skremiec
skremiec / index.php
Created April 12, 2011 17:42
Silex problem
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