cd~
curl -sS https://getcomposer.org/installer | php
php composer.phar
cd~
curl -sS https://getcomposer.org/installer | php
php composer.phar
1.给子域名加www标记 RewriteCond %{HTTP_HOST} ^([a-z.]+)?example\.com$ [NC] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.xample.com%{REQUEST_URI} [R=301,L] 这个规则抓取二级域名的%1变量,如果不是以www开始,那么就加www,以前的域名以及{REQUEST_URI}会跟在其后。
1 2 |
hostname hostname -f |
1 |
sudo apt-get update && sudo apt-get upgrade |
update la6y3_content a,la6y3_k2_items b set b.alias=a.alias where b.title=a.title
修改数据库字符集:
ALTER DATABASE db_name DEFAULT CHARACTER SET character_name [COLLATE ...];
Code Playground ,里面有很多代码实例:
http://code.google.com/apis/ajax/playground/?exp=maps#map_simple
<?php $url="http://原域名".$_SERVER["REQUEST_URI"]; header("HTTP/1.1 301 Moved Permanently"); header ("Location:$url"); ?>
Steven
Project Manager
Is there anything I can help you with?.
00:01微信语音交流至少可节省30分钟
微信号:iplantoocom