<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>小白教程 - PHP</title>
    <link>https://www.xiaobai27.com/forum-39-1.html</link>
    <description>Latest 20 threads of PHP</description>
    <copyright>Copyright(C) 小白教程</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 11 May 2026 13:04:25 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.xiaobai27.com/static/image/common/logo_88_31.gif</url>
      <title>小白教程</title>
      <link>https://www.xiaobai27.com/</link>
    </image>
    <item>
      <title>ThinkPHP多应用如何访问静态资源？</title>
      <link>https://www.xiaobai27.com/thread-369-1-1.html</link>
      <description><![CDATA[单应用模式下，访问静态文件地址可以直接访问:
网址/static/images/logo.png
而多应用的模式下，访问 网址/static/images/logo.png，则会被编译成控制器，应该怎样设置才能直接访问静态资源？

我用的是nginx服务器    如果需要重新配置   麻烦说下 谢谢！！？
 ...]]></description>
      <category>PHP</category>
      <author>东方办公家具</author>
      <pubDate>Sun, 30 May 2021 05:01:27 +0000</pubDate>
    </item>
    <item>
      <title>php使用json_decode转换json文件未数组，输出数组为空</title>
      <link>https://www.xiaobai27.com/thread-373-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>PHP</category>
      <author>大卓子</author>
      <pubDate>Sat, 29 May 2021 19:54:19 +0000</pubDate>
    </item>
    <item>
      <title>询问一个 PHP的奇葩问题，能否首先返回200状态码？</title>
      <link>https://www.xiaobai27.com/thread-379-1-1.html</link>
      <description><![CDATA[我有一个业务，API 接口，程序大概需要运行1秒，但我想用户提交后，程序马上 显示ok,两个字符吧并 返回200状态码，在客户端来看，页面已运行结束，但后台程序如何 返回200码后，继续运行 后续的程序？

我不太想用 crontab 来定时执行。
 ...]]></description>
      <category>PHP</category>
      <author>程叔</author>
      <pubDate>Thu, 27 May 2021 23:22:11 +0000</pubDate>
    </item>
    <item>
      <title>有个难解的问题，限制未登录用户的使用次数</title>
      <link>https://www.xiaobai27.com/thread-365-1-1.html</link>
      <description><![CDATA[最近，我们遇到了一个问题，客户需要一个特性有一个限制:Unlogged用户只能使用这个函数一天20次,超出他们需要登录使用,但这是如何判断对方是相同的用户,IP地址,现在在很多地方与退出IP整个区域,如果使用cookie,浏览器的功能清除cookie。网站本身是无法获得设备ID码的， ...]]></description>
      <category>PHP</category>
      <author>宝妈妈</author>
      <pubDate>Tue, 25 May 2021 07:42:12 +0000</pubDate>
    </item>
    <item>
      <title>求助这个怎么写代码优</title>
      <link>https://www.xiaobai27.com/thread-368-1-1.html</link>
      <description><![CDATA[传入一个号
例如：CHNAA0000000001GT  打印出这个号码的下一个号码  CHNAA0000000002GT
例如：CHNBZ9999999999GT  打印出这个号码的下一个号码  CHNCA0000000001GT
新生成规则：CHN+2个字母+10数字+GT
CHN: 为固定字母
2个字母: 系统按顺序自动生成对应的2个字母编号， ...]]></description>
      <category>PHP</category>
      <author>景湘</author>
      <pubDate>Wed, 19 May 2021 03:26:19 +0000</pubDate>
    </item>
    <item>
      <title>base64_decode中文解析乱码，php如何解决</title>
      <link>https://www.xiaobai27.com/thread-370-1-1.html</link>
      <description><![CDATA[s7W0rMuwyse138j9tbnLxLeiy821vbeiy821vQ== 这段解码应该是\&quot;车船税是颠三倒四发送到发送到\&quot;

在有些在线base64解析也是乱码，有部分解析能够正常解析，有什么好的方法能正产解析]]></description>
      <category>PHP</category>
      <author>中华复兴</author>
      <pubDate>Sun, 16 May 2021 07:35:03 +0000</pubDate>
    </item>
    <item>
      <title>很多网站会在外部链接后面加上这个source，有具体的PHP代...</title>
      <link>https://www.xiaobai27.com/thread-371-1-1.html</link>
      <description><![CDATA[看到很多网站会在外部链接后面加上这个source，有具体的PHP代码吗

例如，网站里面有个百度的链接，点击跳转后会显示http://www.baidu.com/?source=https://www.csdn.net/

这个怎么用php实现呢，各位大神
 ...]]></description>
      <category>PHP</category>
      <author>关阝大叔</author>
      <pubDate>Sun, 09 May 2021 23:25:02 +0000</pubDate>
    </item>
    <item>
      <title>php大佬看下这个数组怎么取值的问题</title>
      <link>https://www.xiaobai27.com/thread-374-1-1.html</link>
      <description><![CDATA[现在已经循环拿到了上图里面的值，怎么才能输出成下面格式
步骤1:步骤二文案, 这是审核图描述一，step_1，step_2
步骤2:步骤三文案, 这是审核图描述二，step_2-1
以此类推

谢谢。。]]></description>
      <category>PHP</category>
      <author>兮木君</author>
      <pubDate>Sat, 08 May 2021 00:29:50 +0000</pubDate>
    </item>
    <item>
      <title>php – 如何获取数组中对象元素的值</title>
      <link>https://www.xiaobai27.com/thread-372-1-1.html</link>
      <description><![CDATA[如下所示,var_dump出来的结果，我想取出error的内容]]></description>
      <category>PHP</category>
      <author>茅山老道</author>
      <pubDate>Wed, 05 May 2021 08:20:23 +0000</pubDate>
    </item>
    <item>
      <title>如果只允许输入英文+数字的情况,能否完美防止SQL注入?</title>
      <link>https://www.xiaobai27.com/thread-366-1-1.html</link>
      <description><![CDATA[用户输入的字符,只允许,大小写英文+数字. 且首位必须是英文.

能否完美的防止sql注入的.]]></description>
      <category>PHP</category>
      <author>奉诏讨逆</author>
      <pubDate>Tue, 04 May 2021 04:29:05 +0000</pubDate>
    </item>
    <item>
      <title>想换开奖API的接口但是里面的数据无法获取到</title>
      <link>https://www.xiaobai27.com/thread-380-1-1.html</link>
      <description><![CDATA[之前的接口是这样的

知道获取数据是先获取result{}在获取data{}里的数据值
但是换了个接口是这样的

多了一个   [   这样的符号在用这样的代码无法获取到里面的数据值了]]></description>
      <category>PHP</category>
      <author>阿吉利</author>
      <pubDate>Tue, 27 Apr 2021 18:32:22 +0000</pubDate>
    </item>
    <item>
      <title>求教一个关于数组取值的问题</title>
      <link>https://www.xiaobai27.com/thread-367-1-1.html</link>
      <description><![CDATA[现有一个数组：
我想获取aid=139且sid=4的数组中score的值。该如何获取呢？不能用循环或遍历。谢谢！！]]></description>
      <category>PHP</category>
      <author>一分为二的夏天</author>
      <pubDate>Sun, 25 Apr 2021 05:28:12 +0000</pubDate>
    </item>
    <item>
      <title>一个排序算法问题</title>
      <link>https://www.xiaobai27.com/thread-381-1-1.html</link>
      <description><![CDATA[banner_fixed_index是固定的位置，banner_show_index是从小到大。

正确的如图所示：126345，想了很多办法，还是没法实现，归根结底算法不行]]></description>
      <category>PHP</category>
      <author>好好工作</author>
      <pubDate>Wed, 21 Apr 2021 06:25:32 +0000</pubDate>
    </item>
    <item>
      <title>apache访问php和使用php执行php文件时，出现差异</title>
      <link>https://www.xiaobai27.com/thread-375-1-1.html</link>
      <description><![CDATA[代码如下，文件名index.php
问题如下
直接使用       curl http://ip:port/xxx/xxx/xxx  正确返回结果
在shell运行   php index.php                         正确返回结果
在浏览器打开localhost/index.php                 运行卡住，无结果


但是如果把url换成\&quot;www. ...]]></description>
      <category>PHP</category>
      <author>沸云</author>
      <pubDate>Thu, 15 Apr 2021 14:48:02 +0000</pubDate>
    </item>
    <item>
      <title>3表链接，数据获取不全</title>
      <link>https://www.xiaobai27.com/thread-376-1-1.html</link>
      <description><![CDATA[数据表如下


在获取栏目id是4的情况下有一条数据不显示（下图框住的数据）]]></description>
      <category>PHP</category>
      <author>籹糅孒</author>
      <pubDate>Tue, 13 Apr 2021 01:21:27 +0000</pubDate>
    </item>
    <item>
      <title>php 不显示结果，查询某一日期内的记录</title>
      <link>https://www.xiaobai27.com/thread-377-1-1.html</link>
      <description><![CDATA[php初学者：要用and查询时间段内记录，select …是or时显示全部记录order by可执行（已删掉），但时间范围好像不起作用 ，o_sdate是int（11）表里有值
—初学者]]></description>
      <category>PHP</category>
      <author>宜而行</author>
      <pubDate>Tue, 06 Apr 2021 02:26:27 +0000</pubDate>
    </item>
    <item>
      <title>为什么PHP的后台无法接收andriod前端 POST过来的数据呢？</title>
      <link>https://www.xiaobai27.com/thread-378-1-1.html</link>
      <description><![CDATA[尝试了N种办法，也百度了很多贴子，更换了php的版本，都不成功，一直获取 不到POST过来的数据，大神们，救救我吧。
尝试过的办法：
file_get_contents(\'php://input\')
var_dump($_POST)
$_POST[\&quot;dddd\&quot;]
这几种办法都无法取得值。
真不知道问题出在哪里
 ...]]></description>
      <category>PHP</category>
      <author>一袋米抗几楼</author>
      <pubDate>Thu, 01 Apr 2021 23:30:22 +0000</pubDate>
    </item>
    <item>
      <title>请教如何让一张表不生成binlog？ 谢谢</title>
      <link>https://www.xiaobai27.com/thread-382-1-1.html</link>
      <description><![CDATA[请教如何让一张表不生成binlog？]]></description>
      <category>PHP</category>
      <author>有山有水</author>
      <pubDate>Thu, 18 Mar 2021 01:25:23 +0000</pubDate>
    </item>
  </channel>
</rss>