IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » jppommet's snipts The latest snipts from jppommet.

showing 1-5 of 5 snipts
  • how to compile manually APC php extension on macosx snow leopard
    $ cd /src/php/ext/apc/dir
    #
    # Important : comment syntax keyword 'static' on line 959 otherwise you will encounter the following error msg : 
    # php_apc.c:959: error: duplicate 'static'
    #
    $ emacs /src/php/ext/apc/dir/php_apc.c 
    $ phpize
    $ MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config 
    $ make
    $ sudo make install
    

    copy | embed

    0 comments - tagged in  posted by jppommet on Oct 15, 2009 at 2:21 a.m. EDT
  • how to configure, build a php extension on macosx snow leopard ( intel arch only )
    $ cd /src/php/ext/dir
    $ phpize 
    $ MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config
    $ make -j6
    $ sudo make install
    

    copy | embed

    0 comments - tagged in  posted by jppommet on Oct 14, 2009 at 6:11 p.m. EDT
  • how to install php apc package on Ubuntu
    # On Ubuntu
    $ apt-get install php5-dev apache-prefork-dev
    $ pecl install apc
    $ echo "extension=apc.so" > /etc/php5/conf.d/apc.ini
    $ apachectl restart
    

    copy | embed

    0 comments - tagged in  posted by jppommet on Jun 13, 2009 at 10:28 p.m. EDT
  • how to get the mime type of a file with the php extension FileInfo
    // POO style
    $mime = new finfo(FILEINFO_MIME);
    $mime_type = $mime->file($file_path);
    

    copy | embed

    0 comments - tagged in  posted by jppommet on Jun 13, 2009 at 9:29 p.m. EDT
  • How to install PECL extension FileInfo ( ubuntu server and php version < 5.3 )
    $ apt-get install php-pear php5-dev libmagic-dev
    $ pecl install fileinfo
    $ sudo echo "extension=fileinfo.so" > /etc/php5/fileinfo.ini
    $ sudo apachectl restart
    

    copy | embed

    0 comments - tagged in  posted by jppommet on Jun 13, 2009 at 8:31 p.m. EDT
Sign up to create your own snipts, or login.