Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?


  1. Create a directory to hold your code.
  2. Open Bowery.
  3. Create a new application.
  4. Search for an image named "PHP 5.5 Apache" and click it.
  5. Empty the command to run input, since we'll be using the apache httpd.
  6. Set the remote directory to "/var/www/html".
  7. Set the local directory to the directory your code lives in.
  8. Wait until the application is running.
  9. Create your php code in the directory created in step 1.
$host = "localhost";
$user = "root";
$pass = "changeme";
$conn = mysql_connect($host, $user, $pass);
if (!$conn) {
echo "Couldn't connect to mysql\n";
} else {
echo mysql_get_server_info() . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment