Skip to content

Instantly share code, notes, and snippets.

View davidfuhr's full-sized avatar

David Fuhr davidfuhr

  • esentri AG
  • Karlsruhe, Germany
View GitHub Profile
<?php
namespace Pokus;
class Exception extends \Exception
{
}
function tttt($string)
{
try {
@davidfuhr
davidfuhr / hhvminfo.php
Last active August 29, 2015 14:08 — forked from ck-on/hhvminfo.php
<?php
/*
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine
Author: _ck_
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements
Version: 0.0.6
* revision history
0.0.6 2014-08-02 display fix for empty vs zero
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements
@davidfuhr
davidfuhr / gist:3270651
Created August 6, 2012 04:47 — forked from anonymous/gist:3260973
Dump all Session Related PHP ini Values
<?php
$ini = ini_get_all('session', false);
$ini['url_rewriter.tags'] = ini_get('url_rewriter.tags');
foreach($ini as $k => $v)
{
echo $k . ' = ' . $v . "\n<br/>\n";
}