yum -y install mod_ssl
模块会生成快捷方式 module文件夹
安装完之后/etc/httpd/conf.d目录下会出现一个ssl.conf文件
……继续阅读 »
6年前 (2018-09-14) 3404浏览
20个赞
采用正则表达式获取地址栏参数:
function GetQueryString(name)
{
var reg = new RegExp(“(^|&)”+ name +”=([^&]*)(&|$)”);
var r = window.location.sear……继续阅读 »
6年前 (2018-09-08) 1166浏览
0个赞
public function truncate_utf8_string($string, $length, $etc = ‘…’)
{
$result = ”;
$string = html_entity_decode(trim(strip_tags($string)), ENT_QUOTES, ‘……继续阅读 »
6年前 (2018-08-25) 1398浏览
1个赞
php随机26个字母
随机小写字母:echo chr(rand(97, 122));
随机大写字母:chr(rand(65, 90));
……继续阅读 »
6年前 (2018-08-23) 1480浏览
2个赞
以curl为例:
php安装后
1、进入文件夹:
cd /etc/php-7.0.12/ext/curl
2、运行 phpize
/usr/local/php/bin/phpize
备注,如果出现如下错误:Cannot find config.m4.
Make sure that you run ‘/usr/local/php/bin/php……继续阅读 »
6年前 (2018-08-18) 1657浏览
2个赞
cp -r adv /home/adv
……继续阅读 »
6年前 (2018-08-18) 1237浏览
0个赞
非常感谢下面的文章帮助我解决了问题!!!
原来是需要将Apache注册到Linux服务里面啊!
注册Apache到Linux服务
在Linux下用源代码方式编译安装完Apache后,启动关闭Apache可以通过如下命令实现:
/usr/local/apache/bin/apachectl start | stop | restart
如果想将httpd……继续阅读 »
6年前 (2018-08-18) 1415浏览
1个赞
yii框架更新语句 累加
User::updateAllCounters(
[‘total_price’ => $total_price,’price’ => $price],
[‘store_id’ => $this->store_id,’id……继续阅读 »
6年前 (2018-08-17) 1790浏览
1个赞
使用GROUP_CONCAT函数
SELECTGROUP_CONCAT(查询的字段 separator ‘,’) FROMtable
……继续阅读 »
6年前 (2018-08-09) 1268浏览
0个赞
如果你想在当前目录下 查找”hello,world!”字符串,可以这样:
grep -rn “hello,world!” *
……继续阅读 »
6年前 (2018-08-09) 1353浏览
0个赞