<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>拇指天空 - PHP编程</title>
    <link>https://www.mztk.cc/forum.php?mod=forumdisplay&amp;fid=65</link>
    <description>Latest 20 threads of PHP编程</description>
    <copyright>Copyright(C) 拇指天空</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 11 Sep 2026 09:55:35 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.mztk.cc/static/image/common/logo_88_31.gif</url>
      <title>拇指天空</title>
      <link>https://www.mztk.cc/</link>
    </image>
    <item>
      <title>关于参数回调错误</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36838</link>
      <description><![CDATA[一开始：同时更换的H3C5200G3路由器和华为服务器系统server2019,移动专线公网IP

环境程序使用：宝塔+PHP7+MYSQL5.7。
参数不能回调。
1.重做系统server2016,安装小P+PHP7+MYSQL5.7，期间PHP5、6和MYSQL5.5也切换过，
参数还是不能回传。
2.使用阿里云服务器部署相同方 ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Fri, 31 Oct 2025 04:34:02 +0000</pubDate>
    </item>
    <item>
      <title>PHP 转int时间戳</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36348</link>
      <description><![CDATA[$riqis = $data[\'riqi\'];
$riqi = strtotime($riqis);
echo 1704596152]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Sun, 07 Jan 2024 05:27:51 +0000</pubDate>
    </item>
    <item>
      <title>thinkphp5.1,tp5.1根据数组查询相应数据</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36300</link>
      <description><![CDATA[以TP5.1为例子

其中有两个表
A表字段：aid
B表三个字段：id,bname，bid

例如数据库中的A表aid字段是这样存储的:101,102,103,.....


B表字段中id咱不管他，[bid=101,bname=山东，bid=102,bname=河南，bid=103,bname=河北....]
也就是说A表的aid=B表的bid
联表查询
//R ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Thu, 07 Dec 2023 09:46:57 +0000</pubDate>
    </item>
    <item>
      <title>TP5.1 获取&lt;el-select&gt;label值</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36291</link>
      <description><![CDATA[TP5.1 获取label值


    
        {{item.rname}}
        
        
    

JSnameData:[],rname: \'\',rid: \'\',homeid: \'\',this.rname = this.$refs.selection.selectedLabel;//其重点是：ref=\&quot;selection\&quot;和this.$refs.selection.selectedLabel;]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Fri, 01 Dec 2023 11:59:16 +0000</pubDate>
    </item>
    <item>
      <title>Thinkphp5.1+workerman+getway实现聊天功能，已踩坑</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36280</link>
      <description><![CDATA[原文地址：https://blog.csdn.net/weixin_44871749/article/details/122325581
我经过踩坑改良的，gatewayclient也放到TP目录下

tp5.1就不多讲了，没有TP5.1基础和composer就别搞了，我只是踩完坑了。
我重要是说服务器端口的事。
只针对windows系统！！！！！！！！！ ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Thu, 23 Nov 2023 07:51:56 +0000</pubDate>
    </item>
    <item>
      <title>VUE+thinkphp5.1 数组写入</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35200</link>
      <description><![CDATA[vue

data: {
    riqi: this.riqi,
    kname: that.kname,
    mobile: that.mobile,
    dizhi: that.dizhi,
    danhao: that.danhao,
    sname:that.sname,
    heji: that.heji,
    daxie: that.daxie,
    sdanwei:that.sdanwei,
    beizhu:that.beizh]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Mon, 28 Nov 2022 03:30:13 +0000</pubDate>
    </item>
    <item>
      <title>小皮PHP 开启使用Redis</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35189</link>
      <description><![CDATA[下载绿色版Redis程序,解压到D:\\phpstudy_pro\\Extensions\\目录下。
选择32bit或64bit文件夹,运行redis-server.exe。



在小皮管理面板-网站-选择你的网站-管理-PHP扩展-redis打钩。



在PHP编程中使用请查看

PHP Redis扩展-windows版本-tp5(thinkphp5)
https://www.mz ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Mon, 07 Nov 2022 13:53:36 +0000</pubDate>
    </item>
    <item>
      <title>apche www跳转</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35181</link>
      <description><![CDATA[apche 不带www跳转www

apache设置目录Extensions\\Apache2.4.39\\conf\\vhosts找到www.xxx.com_80.conf

    DocumentRoot \&quot;C:/xxx.com\&quot;
    ServerName www.xxx.com
    ServerAlias xxx.com
    FcgidInitialEnv PHPRC \&quot;C:/phpstudy_pro/Extensions/php/php7.3.4nts\&quot;
]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Tue, 18 Oct 2022 14:09:51 +0000</pubDate>
    </item>
    <item>
      <title>编程PHP新手零基础《一》</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35172</link>
      <description><![CDATA[大家好，欢迎同学们观赏学习PHP零基础入门第一节课。
这里只教零基础入门，本人中高端的不会，见着勿喷。
1.PHP入门，不只是单单的去学习PHP这一种语言。
2.我将以最领防线开始，简单的以WEB（网页）来开展教学。
3.准备材料（教学内容：计算机Windows系统+JS+HTML+CSS+ ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Sat, 03 Sep 2022 13:37:22 +0000</pubDate>
    </item>
    <item>
      <title>layui 引用第三方JS</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35157</link>
      <description><![CDATA[原始JS的开头1种
!(function(x){.......结尾});
2种!function(x){if(...)}



换成layui1种layui.use([\'form\', \'jquery\', \'element\', \'layer\'], function () {
    var $ = layui.jquery,
        form = layui.form,
        element = layui.element,    //元素*作
   .]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Tue, 07 Jun 2022 13:55:22 +0000</pubDate>
    </item>
    <item>
      <title>THINKphp5 自增量</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35117</link>
      <description><![CDATA[THINKphp5 自增量，字段自增

//打开一次网址paixu字段自增1
public function paixu_up()
{
    $sid = Cookie::get(\'userid\');
    $id = Request::param(\'id\');
    GerenModel::where([\'sjid\' =&gt; $sid,\'id\' =&gt; $id])-&gt;setInc(\'paixu\');
}
 ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Sun, 08 May 2022 13:28:54 +0000</pubDate>
    </item>
    <item>
      <title>php thinkphp5.1批量*作</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35116</link>
      <description><![CDATA[php thinkphp5.1批量*作，批量删除、更新
//前端的ID
$id = Request::param(\'id\');//用户的ID
$sid = Cookie::get(\'userid\');

批量更新

1.遍历更新，这里没有使用用户ID
foreach ($id as $k) {
    $zdid = GerenModel::where(\'id\', $k)-&gt;update([\'std\' =&gt; 1,\'ctime\'  ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Sun, 08 May 2022 04:21:58 +0000</pubDate>
    </item>
    <item>
      <title>php 正则URL</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35113</link>
      <description><![CDATA[$url = \&quot;0532hao.com\&quot;;

$regex = \'/^(http|https|ftp):\\/\\/[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&amp;_~`@[\\]\\’:+!]*([^\\”])*$/\';
if(!preg_match($regex, $url)) {
    return json([\'code\' =&gt; 301, \'msg\' =&gt; \'URL网址不规则\']);
}]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Wed, 04 May 2022 14:49:21 +0000</pubDate>
    </item>
    <item>
      <title>PHP explode分割字符串</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35107</link>
      <description><![CDATA[PHP explode分割字符串，字符串拆分

mysql数据表字段：jiguan=1,1,1,1,1

$cha[\'jg\'] = \&quot;\&quot;;
$bjid = Cookie::get(\'bjid\');
$cha =  $rows = RenyuanModel::alias(\'a\')
    -&gt;join(\'kehu b\', \'a.kid = b.id\')
    -&gt;join(\'bumen c\', \'a.bid = c.bmid\')
    -&gt;where([]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Sun, 10 Apr 2022 07:29:31 +0000</pubDate>
    </item>
    <item>
      <title>JQ 点击获取焦点，JS点击触发</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35089</link>
      <description><![CDATA[当我们点击一个ID弹出事件而且还要获取另一个ID的值，
接下来我们可以借助JQ的focus事件，他比click好用的多！
html





比如：我们的需求，点击bbb要求AJAX传参携带aaa的值，去传参数

JS
//点击class为ccc

$(\&quot;.ccc\&quot;).focus(function(){
var aaaa = $(\&quot;#aaa\&quot;).val(); ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Fri, 18 Mar 2022 15:09:07 +0000</pubDate>
    </item>
    <item>
      <title>JQ纯数字正则验证，正则数字</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35085</link>
      <description><![CDATA[/^(0|[1-9][0-9]*)$/
LAYUI/* form.verify({
   baoxiu:[/^(0|[1-9][0-9]*)$/, \'必须为数字\'],
 });*/]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Thu, 17 Mar 2022 03:59:07 +0000</pubDate>
    </item>
    <item>
      <title>vue+apche+phpStudy配置</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35006</link>
      <description><![CDATA[1. 将原项目中的node_modules文件删除，再在项目文件夹中执行npm install重新下载

2. 在项目的文件夹中使用npm run build（stage）生成dist文件，该文件下的index.html作为项目的根目录

3. 在自己项目的文件夹中执行npm run dev运行自己项目的代码

4. 设置自己的http ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Thu, 23 Dec 2021 04:13:37 +0000</pubDate>
    </item>
    <item>
      <title>PHP Redis扩展-windows版本-tp5(thinkphp5)</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=31716</link>
      <description><![CDATA[一、
1.下载扩展地址：https://github.com/phpredis/phpredis/downloads
2.随便解压一个位置，最好解压到PHP存放目录。
3.修改或添加php配置文件
extension=php_igbinary.dllextension=php_redis.dll
4.启用redis找到redis-server.exe文件双击打开运行，不要关闭一直运 ...]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Mon, 26 Apr 2021 06:08:04 +0000</pubDate>
    </item>
    <item>
      <title>国内知名Wchat团队荣誉出品顶级IM通讯聊天系统</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=31006</link>
      <description><![CDATA[国内知名Wchat团队荣誉出品顶级IM通讯聊天系统



团队言语在先：

想低价购买者勿扰（团队是在国内首屈一指的通信公司离职后组建，低价购买者/代码代码贩子者/同行勿扰/）

。想购买劣质低等产品者勿扰（行业鱼龙混杂，想购买类似低能协议xmpp者勿扰）

。想购买由类 ...]]></description>
      <category>PHP编程</category>
      <author>daima</author>
      <pubDate>Thu, 01 Apr 2021 05:44:11 +0000</pubDate>
    </item>
    <item>
      <title>tp5.1 实例化模型调用方法中的变量</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=29170</link>
      <description><![CDATA[//统计在线IP
// 实例化模型
$aoligei = new Aoligei();
//获取模型zxtongjiip方法中的users_online变量
$users_onlines = $aoligei-&gt;zxtongjiip(\'users_online\');
$this-&gt;assign(\'users_onlines\',$users_onlines);]]></description>
      <category>PHP编程</category>
      <author>win</author>
      <pubDate>Mon, 08 Mar 2021 14:41:43 +0000</pubDate>
    </item>
  </channel>
</rss>