Last active
August 29, 2015 14:09
-
-
Save larzconwell/f99a31fe9666ae3f6869 to your computer and use it in GitHub Desktop.
Revisions
-
larzconwell revised this gist
Nov 10, 2014 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,11 +3,9 @@ 1. Create a directory to hold your code. 2. Open Bowery. 3. Create a new application. 1. Search for an image named "PHP 5.5 Apache" and click it. 2. Empty the command to run input, since we'll be using the apache httpd. 3. Set the remote directory to "/var/www/html". 4. Set the local directory to the directory your code lives in. 4. Wait until the application is running. 6. Create your php code in the directory created in step 1. -
larzconwell revised this gist
Nov 10, 2014 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,11 +3,11 @@ 1. Create a directory to hold your code. 2. Open Bowery. 3. Create a new application. 1. Click the image called "php 5.5 with composer". 2. Empty the command to run input, since we'll be using the apache daemon. 3. Set the remote directory to "/var/www/html". 4. Set the local directory to the directory your code lives in. 4. Wait until the application is running. 5. Open the command input 5. Run "apt-get install -y apache2 libapache2-mod-php5" 6. Create your php code in the directory created in step 1. -
larzconwell created this gist
Nov 10, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # Steps 1. Create a directory to hold your code. 2. Open Bowery. 3. Create a new application. - Click the image called "php 5.5 with composer". - Empty the command to run input, since we'll be using the apache daemon. - Set the remote directory to "/var/www/html". - Set the local directory to the directory your code lives in. 4. Wait until the application is running. 5. Open the command input - Run "apt-get install -y apache2 libapache2-mod-php5" 6. Create your php code in the directory created in step 1. This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?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(); ?>