update la6y3_content a,la6y3_k2_items b set b.alias=a.alias where b.title=a.title
cd~
curl -sS https://getcomposer.org/installer | php
php composer.phar
update la6y3_content a,la6y3_k2_items b set b.alias=a.alias where b.title=a.title
time()函数在PHP中是得到一个数字,这个数字表示从1980-03-05到现在一共是多少秒,很奇怪,不过这样方便计算。 要找出前一天的时间就是 time()-60*60*24; 要找出前一年的时间就是 time()*60*60*24*365 那么如何把这个数字换成日期格式呢 ,就要用到date()函数了
修改数据库字符集:
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"); ?>
ubuntu中php.ini的路径和其他linux不一样,ubuntu的路径为:/etc/php5/apache2/php.ini,sudo vi /etc/php5/apache2/php.ini 1、查找 post_max_size,指通过表单POST给PHP的所能接收的最大值,包括表单里的所有值,默认为8M,看你自 己需要进行改变。
This guide provides step by step instructions for installing a full featured LAMP stack on an Ubuntu 12.04 (Oneiric) system.
In this guide, you will be instructed on setting up Apache, MySQL, and PHP. If you don't feel that you will need MySQL or PHP, please don't feel obligated to install them. Make sure you're logged into your Linode as the "root" user via SSH before proceeding with these instructions.