Tag: error

  • an unknown filter was not added:includes

    an unknown filter was not added:includes

    Depending on how Apache is configured you may need to add something like the following to your Apache config file: Code: LoadModule include_module modules/mod_include.so or more likely you just need to enable the module: Code: sudo a2enmod include Now restart Apache: Code: sudo /etc/init.d/apache2 force-reload

  • php session tmp 路径错误

    php session tmp 路径错误

    PHP出现 Warning: session_start() [function.session-start]: open Warning: session_start() [function.session-start]: open(/tmp\sess_84cb589ea249708b09c3d5e6836fdd0d, O_RDWR) failed: No such file or directory (2) in E:\web\htdocs\111.php on line 9 这个是session的tmp路径没有设置的缘故 你在php.ini(通常在C:\windows\ 目录下)的session.save_path设置一个路径就可以了,并且这个路径是有效的。比如:c:\winnt\temp

  • PhpMyAdmin 错误 "Cannot load mysql extension. Please check your PHP configuration"

    PhpMyAdmin 错误 "Cannot load mysql extension. Please check your PHP configuration"

    Cannot load mysql extension. Please check your PHP configuration. ;extension=php_mysql.dll   ==>> extension=php_mysql.dll ;extension=php_mysqli.dll  ==>> extension=php_mysqli.dll extension_dir  “”               ==>> extension_dir = “C:\Program Files\PHP” Content of config.inc.php is: <? $cfg[‘Servers’][1][‘host’] = ‘localhost’; $cfg[‘Servers’][1][‘extension’] = ‘mysql’; $cfg[‘Servers’][1][‘connect_type’] = ‘tcp’; $cfg[‘Servers’][1][‘compress’] = false; $cfg[‘Servers’][1][‘auth_type’] = ‘config’; $cfg[‘Servers’][1][‘user’] = ‘root’; $cfg[‘Servers’][1][‘password’] = ‘aaaa’; ?>

  • "Fatal error: Maximum execution time"

    "Fatal error: Maximum execution time"

    “Fatal error: Maximum execution time of 60 seconds exceeded in …” 这种错误大多出现在一些执行时间比较久的程序,例如循环、读取、上传等等(瞎写凑字数)。 大多原因在于 PHP 环境的PHP.ini 里的 max_execution_time 的设置,30,60,90….,但是有时候我们需要更长的时间,几小时,几十小时,总不可能都在这儿修改,况且大多空间是不让你改的。 这样最简便的方法就是在程序头加上这样一句: set_time_limit(0); 不限制执行时间,OK,问题就算解决了!

  • Fatal error: Call to undefined function: stripos()

    Fatal error: Call to undefined function: stripos()

    为什么会有这样的错误 “Fatal error: Call to undefined function: stripos()”? 查看了下手册: stripos (PHP 5) stripos — Find position of first occurrence of a case-insensitive string 原来他是个PHP5作用的函数,但是网路上还是有很多服务空间是用的 php 4.3, 那么可以用下面的方法解决这个问题:

  • php代码出现错误分析详解

    php代码出现错误分析详解

    由于最近总是接触到php,经常会出现一些错误,特把php的常见的错误代码收集了下,希望对大家有帮助。 错误类型: 一、未使用二进制上传 代码: Fatal error: This encoded file is corrupted. Please refer to http://www.zend.com/support/support_faq.php?id=loader_file_corrupt for further help in /webhome/****.com/web/www/index.php on line 0 二、数据表中缺少字段 代码: An error was encountered Boka SiteEngine 数据库错误 错误信息1054: Unknown column ‘tuijian’ in ‘where clause’ 出现错误的查询信息是 SELECT * FROM boka_product WHERE tuijian=1 AND classid IN (‘1′,’0’)ORDER BY id DESC LIMIT 4…