16 篇
建站知识总结与分享
搜索“PHP7”
<b>Deprecated</b>: Array and string offset access syntax with curly braces is deprecated in
taotaoit 0 0
252 0 2023-11-01 PHP
Uncaught transport.js/parseResult() error: can't parse to JSON. <br /> <b>Deprecated</b>:  Array and string offset access syntax w...
tp5,excel导入导出,致命错误: Class 'PHPExcel' not found
web 0 0
689 0 2023-08-29 ThinkPHP5.1
tp5,excel导入导出,致命错误: Class 'PHPExcel' not found 原来php7.0应该是可以用的,后来改成php7.4,就提示这个错误 解决办法是使用require引入PHPExcel.php文件 如果PHPExcel放在extend中,则 require \Env::get('ro...
centos apache php7.4安装intl扩展
taotaoit 0 0
480 0 2023-08-28 Linux
centos apache php7.4安装intl扩展 首先:执行phpinfo();查看是否安装了扩展 如果安装了,网页上ctrl+f搜索,是会出现如图信息的,没有安装,则搜不到intl的任何信息 1,查找intl扩展包 yum search php|grep intl ...
致命错误: Class 'ZipArchive' not found,安装zip扩展
web 0 0
619 0 2023-08-28 Linux
在用tp5做excel导入导出的时候,提示:Excel2007.php line 94 致命错误: Class 'ZipArchive' not found \extend\phpexcel\PHPExcel\Reader\Excel2007.php 网上查找说是,缺少zip扩展,各种尝试,不成功 ...
php7.4,phpExcel报错Trying to access array offset on value of type int
web 0 0
807 0 2023-08-26 PHP
php7.4,tp5中使用phpExcel报错Trying to access array offset on value of type int 问题描述: 出现报错信息 先百度翻译 ''试图访问int类型值的数组偏移量'' 通过翻译得知 int型的数据被其他不能使用的类型使用了(个人理解) ...
php中屏蔽~E_DEPRECATED错误,使php页面中不再DEPRECATED的错误提示
web 0 0
511 0 2023-08-08 PHP
E_ERROR:严重错误,系统无法继续执行下去,需要立即停止执行。 E_WARNING:警告级别错误,系统可以继续执行下去。 E_NOTICE:通知级别错误,一些值在赋值之前被使用了。 E_STRICT:编码标准的提示,用于标记一些代码编写不规范的地方。 E_DEPRECATED:在未来版本中将删除的过时功能的提示。 E_PARSE...
Deprecated: Function get_magic_quotes_gpc() is deprecated in
web 0 0
402 0 2023-08-07 PHP
Deprecated: Function get_magic_quotes_gpc() is deprecated in 原因是PHP 7.4不推荐使用get_magic_quotes_gpc函数替代(PHP 7.4 deprecated get_magic_quotes_gpc function alternative)...
Deprecated: Methods with the same name as their class will not be constructor...
web 0 0
362 0 2023-08-07 PHP
Deprecated: Methods with the same name as their class will not be constructor... 最近刚把php版本从5.6切换到7.0上,但是再重新打开项目时,报如下错误: Deprecated: Methods with the same name as th...
php7.4报错:Trying to access array offset on value of type null
web 0 0
611 0 2023-08-02 PHP
php7.4报错:Trying to access array offset on value of type null 一、说明 报错原因:访问类型为 null 的值的 数组下标 7.2中是没问题的,7.4中对语法规范性更为严谨 二、原因 原文:Trying to use ...
Array and string offset access syntax with curly braces is deprecated原因
web 0 0
886 0 2022-05-23 PHP
Array and string offset access syntax with curly braces is deprecated PHP7.4不再支持使用大括号访问数组以及字符串的偏移_PHP代码 php7.4不支持数组{}写法,统一为数组[] 解决办法: seq=(ord(value{0}) % $rule...
TP5.1出现错误 "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
web 0 0
1056 0 2022-01-28 ThinkPHP5.1
TP5.1出现错误 "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? 出现这个错误,在网上查了一下说是php7.3的问题。 看了错误的意思是不能使用continue,还是使用break,所以把co...
php7.2下出现报错__autoload() is deprecated use spl_autoload_register的解决办法
web 0 0
1357 0 2022-01-14 PHP
php7.2下出现报错__autoload() is deprecated use spl_autoload_register的解决办法 原因php7以上版本不支持用“function __autoload(){}”,才会报这个错误。 解决办法 1、把php版本降低一点就行了,5.6和5.4都行。 2、将__autoload改写...
Parse error: syntax error, unexpected ':', expecting '{' in /www/wwwroot/xxx.com/vendor/symfony/deprecation-contracts/function.php on line 23
taotaoit 3 0
1628 0 2021-12-28 PHP
Parse error: syntax error, unexpected ':', expecting '{' in /www/wwwroot/xxx.com/vendor/symfony/deprecation-contracts/function.php on line 23 找到23行,看看代码 不...
thinkphp3.2在php7下运行,出现错误"系统不支持:mysql"
web 0 0
2242 0 2021-12-22 ThinkPHP
thinkphp3.2在php7下运行,出现错误"系统不支持:mysql" 如果是自己的服务器,可以在宝塔里面安装php5.6,然后切换到5.6就可以了。虚拟主机,也可以切换php版本。 以下是网站找到的修改thinkphp3.2的方法: 原因是thinkphp里面的数据库链接配置里面 在php...
php7.3.4nts发送邮件失败phpMailer
taotaoit 0 0
1607 0 2021-04-21 PHP
php7.3.4nts发送邮件失败phpMailer 本来代码是没问题的,换了phpstudy版本后,php版本由php5.6升级到了php7.3.4结果发送邮件功能用不了了。 SMTP connect() failed 解决办法: 打开php.ini,找到extension=openssl,前面加上;如下 ...
PHP7 引入的“??” 和“?:”的区别
web 0 0
1681 0 2019-04-25 PHP
$a ?? 0 等同于 isset($a) ? $a : 0。 $a ?: 0 等同于 $a ? $a : 0。 empty: 判断一个变量是否为空(null、false、00、0、’0′、』这类,都会返回true)。 isset: 判断一个变量是否设置(值为false、00、0、’0′、』这类,也会返回true)。 测试代码(...
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6281242 2594 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)