i want to display the git version on my site

I want to display the git version number on my site.

I found that it was a commit hash and this wasn't suitable for non-technical users to reference.

I have created this class to display the version 'number' of the current git local to this script.


Gist: https://gist.github.com/lukeoliff/5501074


class QuickGit {

  public static function version() {
    exec('git describe --always',$version_mini_hash);
    exec('git rev-list HEAD | wc -l',$version_number);
    exec('git log -1',$line);
    $version['short'] = "v1.".trim($version_number[0]).".".$version_mini_hash[0];
    $version['full'] = "v1.".trim($version_number[0]).".$version_mini_hash[0] (".str_replace('commit ','',$line[0]).")";
    return $version;


Need Your Help

Post to Facebook timeline

php facebook facebook-javascript-sdk facebook-php-sdk

Can anyone provide me the steps using an app to post using facebook php sdk on my timeline.

publish_actions authentication permission issue

facebook authentication opengraph facebook-apps

The problem with my application is when I test the application as a developer, it ask asks for publish actions permission as it should but when other users go to my application it doesn't ask for

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.