摘要:
https://oneinstack.com/question/lnmp-why-fileinfo-extension/ cd /root/oneinstack/srctar zxvf php-5.6.20.tar.gz # 解压已经安装的php版本cd php-5.6.20/ext/fileinf 阅读全文
摘要:
<?php echo mb_substr($value['top']['description'], 0, 60, 'utf-8'); ?> 阅读全文
摘要:
$(function () { $.ajax({ url : 'http://www.che.com/ajax/jsonp/islogin.htm', type : "get", data:'', dataType : "jsonp", jsonp:'callback', async: false, 阅读全文
摘要:
$foo = 'hello world!';$foo = ucwords($foo); // Hello World! $bar = 'HELLO WORLD!';$bar = ucwords($bar); // HELLO WORLD!$bar = ucwords(strtolower($bar) 阅读全文
摘要:
1. echo str_replace("world","John","Hello world!"); 2. Hello John! 阅读全文
摘要:
//获取ip地址public static function getIP() { if (@$_SERVER["HTTP_X_FORWARDED_FOR"]) $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; else if (@$_SERVER["HTTP_CLIEN 阅读全文
摘要:
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; 所有数据库所有表 GRANT ALL PRIVILEGES ON xinchuanbo.* TO 'zzs'@'%' I 阅读全文
摘要:
1.创建数据库mysql -uroot -p1234 create database wiki default charset utf8;use wiki;source /your_wiki_sql_file_path/wiki.sql 阅读全文
摘要:
alter table wyx_phome_ecms_advert rename to advert 阅读全文
摘要:
echo base_convert(crc32("用户名")%36, 10, 36);结果:0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,i,s,t,u,v,w,x,y,z 阅读全文