Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.
Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.

Steps

  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.
<?php
$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";
}
mysql_close();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment