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的常见的错误代码收集了下,希望对大家有帮助。 错误类型: 一、未使用二进制上传 代码: 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 …

ifconfig 命令详解(转载)

无论是Linux 自动安装还是我们手工安装,Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后,系统将在内核表中设置必要的参数,这样Linux 就知道如何与网络上的网卡通 信。ifconfig 命令有以下两种格式:

cannot restore segment prot after reloc: Permission denied

在linux上安装有些东西时会出现 Permission denied 的情况:以下就是解决它的办法之一 编辑/etc/selinux/config,找到这段: # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing – SELinux security …

Apache日志分析

1,查看apache进程: ps aux | grep httpd | grep -v grep | wc -l 2,查看80端口的tcp连接: netstat -tan | grep “ESTABLISHED” | grep “:80” | wc -l

Apache的rewrite的设置参数

Apache的rewrite的重写非常常用,现总结了一下. Apache mod_rewrite规则重写的标志一览 R[=code](force redirect) 强制外部重定向 强制在替代字符串加上http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定,将用缺省的302 HTTP状态码。 F(force URL to be forbidden)禁用URL,返回403HTTP状态码。

让Putty中显示中文的不再乱码

玩Linux的同志,大多数都使用 vmware在自己的机器上装个虚拟的Linux玩,但由于字符界面用的比较多,有时对着资料做实验,总是要按ctrl+atl键来在系统和虚拟机之间来回切换,很是麻烦,有了Putty这个问题就轻松解决了。Putty是个绿色软件,不用安装即可使用,下载下来放到桌面上,用的时候双击就行了。