Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
<div class='row-fluid'> | |
<div class='span12'> | |
<div data-toggle-name='record_id' value='Hank Williams' class='btn btn-input btn-large'> | |
Hank Williams | |
</div> | |
<div data-toggle-name='record_id' value='Cee Lo Green' class='btn btn-input btn-large'> | |
Cee Lo Green | |
</div> | |
<input type='hidden' name='record_id' value='0'> |
<?php | |
class MySQLDump | |
{ | |
public $tables = array(); | |
public $connected = false; | |
public $output; | |
public $droptableifexists = false; | |
public $mysql_error; | |
public $host = ""; |
<?php | |
class MySQLDump | |
{ | |
public $tables = array(); | |
public $connected = false; | |
public $output; | |
public $droptableifexists = false; | |
public $mysql_error; | |
public $host = ""; |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
$colors = array( | |
"Indian Red" => "#CD5C5C", | |
"Salmon" => "#FA8072", | |
"Dark Salmon" => "#E9967A", | |
"Light Salmon" => "#FFA07A", | |
"Crimson" => "#DC143C", | |
"Red" => "#FF0000", | |
"Fire Brick" => "#B22222", | |
"Dark Red" => "#8B0000", |
public static function search_contacts($terms) | |
{ | |
$terms = mysql_real_escape_string($terms); | |
$contact_results = Contact::where_account_user_id(Auth::user()->account_user_id) | |
->raw_where("match (`first`, `last`) against ('{$terms}*' IN BOOLEAN MODE)") | |
->where_deleted(0) | |
->paginate(20); | |
phpconsole($contact_results->results); |
public static function search_contacts($terms) | |
{ | |
$terms = escape($terms); | |
$contacts = Contact::where_account_user_id(Auth::user()->account_user_id) | |
->raw_where("match (`first`, `last`) against ('{$terms}*' IN BOOLEAN MODE)", array()) | |
->where_account_user_id(Auth::user()->account_user_id) | |
->where_deleted(0) | |
->take(20) | |
->get(); |
<?php | |
class Home_Controller extends Base_Controller | |
{ | |
public function get_run() | |
{ | |
phpconsole("WORKER: Initializing the CloudWorker."); | |
$love = true; |
public static function search_contacts($terms) | |
{ | |
$search_all = ! Input::has('first') && ! Input::has('last'); | |
$terms = escape($terms); | |
$search_terms = explode(' ', $terms); | |
$search_term_bits = array(); | |
foreach ($search_terms as $term) { | |
$term = trim($term); | |
if (! empty($term)) { | |
if ((Input::has('first') && Input::has('last')) || $search_all) |
// include this file at bottom of start.php | |
// if (strlen('Form') * $numberOfFormElements > strlen('f') * $numberOfFormElements) | |
// return "3x's less keys pushed over time." | |
class f extends Form {} |