当前位置:首页 > 搜索和 a 相关的文章

解决PHP提示Notice: Undefined variable的办法

添加日期:2018-10-24 13:43:37 发布:smiling 
我们知道在 php 中,变量通常是不需要定义直接使用的,但有的时候因为 php 环境的问题会出现各种各样奇奇怪怪的事情,今天在调试程序的时候直接提示 Notice: Undefined variable 的错误, ...

php foreach循环使用引用注意事项

添加日期:2018-10-24 13:39:13 发布:smiling 
看过PHP相关书籍的都会了解到PHP有个这样的特性:写时复制,所以在用foreach时,需要对数据做修改的时候,都会复制数据,如果数据很大,那么就会带来一定的内存消耗,所以为了避免这种复制操作,就 ...

phpunit遇到You cannot serialize or unserialize PDO instances

添加日期:2018-10-24 13:35:00 发布:smiling 
globalsBackup causes: PDOException: You cannot serialize or unserialize PDO instances。在PHPUnit Frameword TestCase php文件中,有一行protected $backupGlobals = TRUE;把back ...

php报错FastCGI sent in stderr “PHP Fatal error: Allowed memory size of”错

添加日期:2018-10-24 13:33:48 发布:smiling 
PHP的memory_limit值的默认配置是128M,但是根据处理内容有时候会发生如下错误。FastCGI sent in stderr: PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes e ...

php Function eregi() is deprecated 解决方案

添加日期:2018-10-24 13:20:17 发布:smiling 
首先说下ereg()与eregi()的区别:ereg()字符串对比匹配函数,区分字符串大小写;eregi()字符串对比匹配函数,不区分字符串大小写 这两个函数在php正则里经常会用到,但是由于php5 3以后的版本不再支 ...

PHP的imagettftext中文乱码解决方法

添加日期:2018-10-23 10:02:19 发布:smiling 
分析:1、确认gb库是否正确安装?没有报这个方法不存在。2、imagettftext()必须utf-8编码,php的整个项目都是utf-8编码,所以不用太多考虑。如果不是,可以mb_convert_encoding()转换;3、检查字体 ...

php7跑laravel5.0报错,异常Carbon::createFromFormat()

添加日期:2018-10-23 10:00:07 发布:smiling 
异常:Declaration of Carbon Carbon::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, DateTimeZone $object = NULL)解决:修改:vendor ...

PHP 报错 Fatal error: Class COM not found in

添加日期:2018-10-23 09:53:46 发布:smiling 
Fatal error: Class & 39;COM& 39; not found in XXXXXXXXX没发现 COM 类原因分析检查php目录ext文件夹下面php_com_dotnet dll是否存在解决方法:★ extension_dir ext路径是否正确★ ...

phpexcel导入xlsx文件报错xlsx is not recognised as an OLE file 怎么办

添加日期:2018-10-22 17:35:24 发布:smiling 
最初的做法:include& 39;classes PHPExcel IOFactory php& 39;;$inputFileName=$target;$objReader=newPHPExcel_Reader_Excel5();$objPHPExcel=$objReader->load($inputFileName);$sheetData=$objP ...

PHPMyAdmin编辑数据库表一直提示”正在加载”问题

添加日期:2018-10-22 17:29:13 发布:smiling 
一般对于普通的VPS主机用户需求来说,我们会熟悉1-2种一键包或者WEB面板工具部署网站环境,会添加站点和数据库部署站点,以及勤奋一点定期备份数据,基本上还是可以满足基本的VPS主机应用的。上午 ...

PHP date()函数It is not safe to rely on the system s timezone settings

添加日期:2018-10-22 17:25:17 发布:smiling 
在写php文件上传程序时有时会出现这样的警告:Type:image pngSize:66 84765625KbTempfile:D: Users Aven AppData Local Temp php742F tmpWarning:move_uploaded_file()[function move-uploaded-fil ...

php 502 bad gateway的解决方案

添加日期:2018-10-22 17:21:38 发布:smiling 
今天升级完PHP出现了502 Bad Gateway错误,根据经验是php-fpm的问题,但是看到网上那些什么访问量,子进程设置什么的,但是我这太服务器压根没啥流量。所以只能从配置文件下手看看。[global]pid= ...