<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>商会资讯 - PHP</title>
    <link>http://smellage.com/forum-49-1.html</link>
    <description>Latest 20 threads of PHP</description>
    <copyright>Copyright(C) 商会资讯</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 01 May 2026 00:01:35 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://smellage.com/static/image/common/logo_88_31.gif</url>
      <title>商会资讯</title>
      <link>http://smellage.com/</link>
    </image>
    <item>
      <title>thinkPHP5中的与原本的I方法用什么东西替代了？</title>
      <link>http://smellage.com/thread-108-1-1.html</link>
      <description><![CDATA[过去的单字母函数已完全bai被替换掉，如下：

S=&gt;cache，C=&gt;config，M/D=&gt;model，U=&gt;url，I=&gt;input，E=&gt;exception，L=&gt;lang，A=&gt;controller，R=&gt;action

    ThinkPHP是为了简化企业级应用zhi开dao发和敏捷WEB应用开发而诞生的。最早诞生于2006年初，2007年元旦正式更名 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Sat, 22 Aug 2020 02:41:22 +0000</pubDate>
    </item>
    <item>
      <title>php Maximum execution time of 30 seconds exceeded解决办法</title>
      <link>http://smellage.com/thread-107-1-1.html</link>
      <description><![CDATA[百度了一下，发现是php配置文件的问题，默认的最大执行时间不能超过30s，于是修改php.ini，将max_execution_time`=30改为300，结果发现还是不行，又改为3000，最后改为0（无限制）都还是不行；
最后发现同时也要改max_input_time，将max_execution_time和max_input_time ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Tue, 11 Aug 2020 08:41:34 +0000</pubDate>
    </item>
    <item>
      <title>json_decode 函数解析 json 结果为 NULL 的解决方法</title>
      <link>http://smellage.com/thread-93-1-1.html</link>
      <description><![CDATA[解决方法：
出现这个问题是因为在 json 字符串中反斜杠被转义，只需要用 htmlspecialchars_decode() 函数处理一下 $content 即可：
$content = htmlspecialchars_decode($content);
此时再使用 json_decode() 函数解析，就没有问题了，页面输出：


Array ( 
     =&gt; gr ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Tue, 03 Jul 2018 05:56:13 +0000</pubDate>
    </item>
    <item>
      <title>php序列化与反序列化时字符集不一致问题的解决办法</title>
      <link>http://smellage.com/thread-82-1-1.html</link>
      <description><![CDATA[今天的用PHP的时候无意的出现了用unserialize()函数转换老是返回false,我确认我的字符串是没错的,测试了很多次还是一样,没办法,启用了error_reporting(E_ALL)启用错误信息,
没想到发现了Notice: unserialize() [function.unserialize]: Error at offset的信息, 因为我字 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Sat, 28 Oct 2017 09:07:14 +0000</pubDate>
    </item>
    <item>
      <title>nginx下基于ThinkPHP框架的网站url重写</title>
      <link>http://smellage.com/thread-81-1-1.html</link>
      <description><![CDATA[nginx下的基于thinkphp的应用的url重写，需了解thinkphp的各种url格式参数的处理逻辑以及nginx重写的原理。简单点说，无论哪种url格式，nginx都需要执行ThinkPHP下的应用单一入口文件，然后将各种url格式按照一定的格式规则进行进行参数化处理，最终执行指定模块与控制 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Sat, 28 Oct 2017 09:04:30 +0000</pubDate>
    </item>
    <item>
      <title>thinkphp No input file specified 问题解决</title>
      <link>http://smellage.com/thread-80-1-1.html</link>
      <description><![CDATA[原来测试环测是IIS，换了phpstudy就出现
No input file specified

.htaccess文件中的

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

在默认情况下会导致No input file specified.

修改成

RewriteRule ^(.*)$ index.php [L,E=PATH_INFO1]

问题解决。              ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Fri, 20 Oct 2017 03:01:07 +0000</pubDate>
    </item>
    <item>
      <title>php curl后json_decode无法显示的问题</title>
      <link>http://smellage.com/thread-79-1-1.html</link>
      <description><![CDATA[我们都知道，一般我们在php项目中使用json_decode时，不会出现问题。
如果我们要想在A页面将数据库中的数据用json形式输出，例如：http://1.xxx.com/a.php

[*]  


我们会发现，出现的了故障：

竟然json_decode后无法显 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
<enclosure url="http://smellage.com/data/attachment/forum/201710/06/012333y9nbxynz4jbnjyxn.jpg" length="39096" type="image/jpeg" />      <pubDate>Thu, 05 Oct 2017 17:23:31 +0000</pubDate>
    </item>
    <item>
      <title>api接口类封装</title>
      <link>http://smellage.com/thread-78-1-1.html</link>
      <description><![CDATA[api接口类实现
项目要求比较低，封装一下能用得上的可以拿去用
/**
 * 接口类
 * @author amplam 
 * @config 
 * return array(
        //\'配置项\'=&gt;\'配置值\'
        \&quot;appid\&quot;=&gt;\&quot;test\&quot;,
        \'appsecert\'    =&gt;    \'test\',
        \'appip\'=&gt;\'\',//允许访问的IP 为 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Sat, 30 Sep 2017 01:06:28 +0000</pubDate>
    </item>
    <item>
      <title>thinkphp在app接口开发过程中的通讯安全认证</title>
      <link>http://smellage.com/thread-77-1-1.html</link>
      <description><![CDATA[对于我们写好的接口，如果不经过安全认证就可以直接访问的话，则将对我们网站产生非常大的安全隐患，一些hack可能直接用你的接口去操作数据库，后果无法估量。那么如何才能进行有效的安全验证呢？ 这里我采用了微信开发中的access_token机制，让app前端开发工程师通过提 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Tue, 26 Sep 2017 14:37:01 +0000</pubDate>
    </item>
    <item>
      <title>如何修改SVN已提交项目的message log</title>
      <link>http://smellage.com/thread-76-1-1.html</link>
      <description><![CDATA[直接在TortoiseSVN中修改过往日志，会提示：
DAV request failed;it\'s possible that the repository\'s pre-revprop-change hook either failed or is non-existent
At least one property change failed; repository is unchanged.
因为SVN库中的日志本身是没有进行版 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Wed, 20 Sep 2017 06:43:22 +0000</pubDate>
    </item>
    <item>
      <title>微信公众平台 网页 跳转 如何获取 账号</title>
      <link>http://smellage.com/thread-75-1-1.html</link>
      <description><![CDATA[一、通过全局Access Token获取用户基本信息
1. 用户关注以及回复消息的时候，均可以获得用户的OpenID


    
    
    1372307736
    
    
    


其中的FromUserName就是OpenID
2. 然后使用access_token接口，请求获得全局Access Token
https://api.weixin.qq.com/cg ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Fri, 15 Sep 2017 06:59:26 +0000</pubDate>
    </item>
    <item>
      <title>解决php网页运行超时问题:Maximum execution time of 30 seconds exceeded</title>
      <link>http://smellage.com/thread-73-1-1.html</link>
      <description><![CDATA[Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Inetpub\\wwwroot\\ry.PHP on line 11意思是说脚本执行时间超过了30秒的上限。30秒脚本执行时间，对于一般的网页来说，可能有点长，不过我这个应用程序是允许程序执行时间在2分钟内的，所以，30秒不应 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Wed, 12 Jul 2017 03:56:18 +0000</pubDate>
    </item>
    <item>
      <title>基于H5的微信支付开发详解</title>
      <link>http://smellage.com/thread-66-1-1.html</link>
      <description><![CDATA[这次总结一下用户在微信内打开网页时，可以调用微信支 付完成下单功能的模块开发，也就是在微信内的H5页面通过jsApi接口实现支付功能。当然了，微信官网上的微信支付开发文档也讲解的很详细，并且有实现 代码可供参考，有 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
<enclosure url="http://smellage.com/data/attachment/forum/201702/21/152833oa9z11g017g0b477.jpg" length="31018" type="image/jpeg" />      <pubDate>Tue, 21 Feb 2017 07:28:33 +0000</pubDate>
    </item>
    <item>
      <title>__construct()和__initialize()</title>
      <link>http://smellage.com/thread-65-1-1.html</link>
      <description><![CDATA[ThinkPHP中的__initialize()和类的构造函数__construct()
网上有很多关于__initialize()的说法和用法，总感觉不对头，所以自己测试了一下。将结果和大家分享。不对请更正。
首先，我要说的是
1、__initialize()不是php类中的函数，php类的构造函数只有__construct().
2 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Fri, 20 Jan 2017 07:53:21 +0000</pubDate>
    </item>
    <item>
      <title>微信支付PHP SDK —— 公众号支付代码详解</title>
      <link>http://smellage.com/thread-45-1-1.html</link>
      <description><![CDATA[在微信支付 开发者文档页面 下载最新的 php SDK
http://mch.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1
这里假设你已经申请完微信支付

1. 微信后台配置  如图



我们先进行测试，所以先把测试授权目录和 测试 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
<enclosure url="http://smellage.com/data/attachment/forum/201610/28/164129isusseeu338zdzxg.jpg" length="22209" type="image/jpeg" />      <pubDate>Fri, 28 Oct 2016 08:41:21 +0000</pubDate>
    </item>
    <item>
      <title>PHP微信支付开发实例</title>
      <link>http://smellage.com/thread-44-1-1.html</link>
      <description><![CDATA[PHP微信支付开发过程，分享给大家，供大家参考，具体内容如下
1.开发环境 
Thinkphp 3.2.3 
微信：服务号，已认证 
开发域名：http://test.paywechat.com (自定义的域名，外网不可访问)
2.需要相关文件和权限 
微信支付需 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
<enclosure url="http://smellage.com/data/attachment/forum/201610/28/162924mhf1mhrmbmdmnp8y.jpg" length="67560" type="image/jpeg" />      <pubDate>Fri, 28 Oct 2016 08:29:24 +0000</pubDate>
    </item>
    <item>
      <title>微信支付的接口文件demo一拿到，就放到的服务器上测试...</title>
      <link>http://smellage.com/thread-43-1-1.html</link>
      <description><![CDATA[微信支付的接口文件demo一拿到，就放到的服务器上测试，首先打开，把对应的参数配置好，打开一看第一个错误就出现了

微信支付示例接口一打开就报了这样的错误

Notice: Use of undefined constant CURLOP_TIMEOUT - assumed \'CURLOP_TIMEOUT\' in /wx_pay_test/WxPayP ...]]></description>
      <category>PHP</category>
      <author>admin</author>
      <pubDate>Fri, 28 Oct 2016 08:07:27 +0000</pubDate>
    </item>
    <item>
      <title>用ThinkPHP3.2.2框架做手机和PC端浏览器的切换</title>
      <link>http://smellage.com/thread-38-1-1.html</link>
      <description><![CDATA[ThinkPHP搭建手机版网站: http://www.php100.com/html/php/lei/2013/0904/1699.html 

 这篇文章（肯定不是基3.2.2讲的）是在框架入口通过判断手机还是PC访问来决定app的路径，这样，我手机web和pc就不能共用MVC三层了。
 ...]]></description>
      <category>PHP</category>
      <author>admin</author>
<enclosure url="http://smellage.com/data/attachment/forum/201610/03/212922enw5vr6oghoohro5.jpg" length="50058" type="image/jpeg" />      <pubDate>Mon, 03 Oct 2016 12:56:06 +0000</pubDate>
    </item>
  </channel>
</rss>