/**
*获取PID
*@returnint|null
*@throws\RuntimeException
*/
publicfunctiongetPid()
{//获取进程ID
if($this->isSigchildEnabled()){
thrownew\RuntimeException(‘ThisPHPhasbeencompiledwith--enable-sigchild.Theprocessidentifiercannotberetrieved.‘);
}//如果是单独..
分类:
Web程序 时间:
2016-12-23 10:07:47
阅读次数:
194
/**
*@vararray
*/
publicstatic$exitCodes=[//异常退出代码
0=>‘OK‘,//正常退出
1=>‘Generalerror‘,//一般性错误
2=>‘Misuseofshellbuiltins‘,//缺少脚本
126=>‘Invokedcommandcannotexecute‘,//执行命令错误
127=>‘Commandnotfound‘,//命令没找到
128=>‘In..
分类:
Web程序 时间:
2016-12-21 12:05:16
阅读次数:
230
一.入门与安装 1.进入C:\Windows\System32\drivers\etc的hosts文件中增加127.0.0.1 www.tp5.com 即访问这个域名就相当于访问127.0.0.1 2.修改apache配置文件 增加 意思为访问www.tp5.com系统会自动引导到这个public目 ...
分类:
Web程序 时间:
2016-12-21 02:42:52
阅读次数:
244
<?php
//+----------------------------------------------------------------------
//|ThinkPHP[WECANDOITJUSTTHINK]
//+----------------------------------------------------------------------
//|Copyright(c)2006~2015http://thinkphp.cnAllrightsreserved.
//+----..
分类:
Web程序 时间:
2016-12-20 12:06:21
阅读次数:
247
微信媒体文件管理 切换导航 广告管理系统 新建广告 微信文件 ... ...
分类:
微信 时间:
2016-12-18 17:45:37
阅读次数:
351
<?php
//+----------------------------------------------------------------------
//|ThinkPHP[WECANDOITJUSTTHINK]
//+----------------------------------------------------------------------
//|Copyright(c)2006~2016http://thinkphp.cnAllrightsreserved.
//+----..
分类:
Web程序 时间:
2016-12-16 12:23:55
阅读次数:
263
//检测域名
protectedstaticfunctionparseDomain(&$url,$domain)
{//根据url及传入的域名进行解析
if(!$domain){//如果没有传入合适的数据,直接返回
return‘‘;
}
$request=Request::instance();//请求实例化
if(true===$domain){//如果传入的域名为true则自动判定域名
//..
分类:
Web程序 时间:
2016-12-15 18:26:06
阅读次数:
209
namespacethink;
usethink\Config;
usethink\Loader;
usethink\Request;
usethink\Route;
//使用think里面,内置的ConfigLoaderRequestRoute
classUrl
{
//生成URL地址的root
protectedstatic$root;//根地址
/**
*URL生成支持路由反射
*@paramstring$url路由地址
*@paramstr..
分类:
Web程序 时间:
2016-12-14 10:01:19
阅读次数:
279
TODO:macOS上ThinkPHP5和Semantic-UI集成1.全局安装(onOSXviahomebrew)Composer是homebrew-php项目的一部分2.把Xcode升级到8.1后继续安装Composer3.使用composer创建TP5项目MWL-Dispatchcomposercreate-projecttopthink/thinkMWL-Dispatch4.配置apache,设置Virtualhosts,在h..
分类:
Web程序 时间:
2016-12-13 16:54:18
阅读次数:
446
/**
*预载入关联查询返回模型对象
*@accesspublic
*@paramModel$result数据对象
*@paramstring$relation关联名
*@returnModel
*/
publicfunctioneagerlyResult($result,$relation)
{
return$this->relation()->eagerlyResult($result,$relation);
}//提前载入关联查询
/..
分类:
Web程序 时间:
2016-12-13 16:53:37
阅读次数:
293