I hereby claim:
- I am edwardteach42 on github.
- I am edwardteach42 (https://keybase.io/edwardteach42) on keybase.
- I have a public key ASBiEStDay9NJb7m5i1BeEIOd_ruLO4K1-RpQP39JVkxDgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
A Pen by Connor Kennedy on CodePen.
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
#CentOS Server on EC2 with Git Deployment
##Use Rightscale CentOS Community Server Image ami-09496d4c
###Step 1: SSH into the server and do the following
BE SURE YOU PERFORM THESE ACTIONS AS ROOT OR SU
$ yum update
$ yum install git mysql mysql-libs httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-mcrypt
foreach ( $_POST as $key => $value ){ | |
echo '$' . $key . ' = $_POST[\'' . $key . '\'];<br />'; | |
} |
Set Up CentOS Server | |
Use Rightscale CentOS Community Server Image ami-09496d4c | |
*****AS ROOT***** | |
$ yum update | |
$ yum install git mysql mysql-libs httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-mcrypt | |
$ echo 'service httpd restart' >> /etc/rc.local | |
$ ssh-keygen -t rsa -C "[email protected]" | |
$ useradd git | |
$ passwd git | |
$ cd /home/git |
<?php | |
$i = 1; | |
while ($x < 17){ | |
echo 'Data ' . $i . '<br>'; | |
//Change Value to how many rows you want to insert after. | |
if( ($i % 3) == 0 ){ | |
echo 'Snippet of text--<br>'; | |
} |
<?php | |
$array = array('value1', 'value2', 'value3'); | |
$comma_separated = implode(",", $array); | |
print $comma_separated; // value1,value2,value3 | |
//when you pull it back out, explode it, and then you will have your array! | |
?> |