- Create a directory to hold your code.
- Open Bowery.
- Create a new application.
- Search for an image named "PHP 5.5 Apache" and click it.
- Empty the command to run input, since we'll be using the apache httpd.
- Set the remote directory to "/var/www/html".
- Set the local directory to the directory your code lives in.
- Wait until the application is running.
- Create your php code in the directory created in step 1.
Last active
August 29, 2015 14:09
-
-
Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.
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
<?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