Skip to content

Instantly share code, notes, and snippets.

@sveneisenschmidt
Created June 14, 2012 11:09
Show Gist options
  • Save sveneisenschmidt/2929676 to your computer and use it in GitHub Desktop.
Save sveneisenschmidt/2929676 to your computer and use it in GitHub Desktop.
Silex on Raspberry Pi
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app->get('/', function () {
$uname = shell_exec('uname -a');
return "<img src='logo.jpg' style='width:26px; height:26px; float: left;' /><h3>Hello says <em>Silex</em> running on <em>Raspberry Pi</em>!</h3></br>> php shell_exec('uname -a')<br/> <code>{$uname}</code>";
<em>Silex<$
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment