Created
June 14, 2012 11:09
-
-
Save sveneisenschmidt/2929676 to your computer and use it in GitHub Desktop.
Silex on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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