不同的错误处理方法:
简单的die()语句自定义错误函数和错误触发器错误报告
基本的错误处理:使用die()函数
if(!file_exists("welcome.txt")){
die("FIle not found");
}else{
$file=fopen("welcome.txt","r");
}
或者
$file=fopen("web...
分类:
Web程序 时间:
2014-07-25 11:10:01
阅读次数:
243
Mac使用快捷键会节省很多时间。使用最多的键就是shift键 option键 command键的组合了。当然一下稍微用得多一点点,还有很多快捷键没一一列举了
进入指定目录的一些快捷键
进入 All My Files目录: shift+command+f
进入Documents目录:shift+command+o
进入Desktop目录:shift+command+d
进入Home目录:...
分类:
其他好文 时间:
2014-07-25 11:02:51
阅读次数:
281
ubuntu13.10 lenovo网卡驱动安装(Broadcom)ubuntu当月刚出了13.10版本,在升级了操作系统版本后无法搜索无线热点,联想官网提供的驱动下载都是为windows准备的,所以得自己去找网卡对应的linux驱动。并执行如下命令:Command代码 sudo apt-get i...
分类:
其他好文 时间:
2014-07-25 02:34:04
阅读次数:
345
记录一下自己解决tomcat部署遇得到问题的全过程 首先,在tomcat部署上面部署项目时,报如下错误: 严重: Error listenerStart 2014-7-24 14:25:44 org.apache.catalina.core.StandardContext start 严重: Context...
分类:
移动开发 时间:
2014-07-25 00:08:44
阅读次数:
432
在/etc/profile追加exportHISTORY_FILE=/var/log/history/userhistory.log
readonlyPROMPT_COMMAND=‘{date"+%y-%m-%d%T#####$(whoami|awk"{print\$1\"\"\$2\"\"\$NF}")####$(id|awk"{print\$1}")####$(history1|{readxcmd;echo"$cmd";})";}>>$HISTORY_FILE‘重读source/et..
分类:
系统相关 时间:
2014-07-24 23:54:14
阅读次数:
281
Format:column column_name new_value var_nameMeaning: use the column_name of a select statment to construct a variable, later we can use &var_name to r...
分类:
数据库 时间:
2014-07-24 22:38:53
阅读次数:
270
【命令】nice — 调整程序运行的优先级【格式】nice [OPTION] [command [arguments...]]【说明】在当前程序运行优先级基础之上调整指定值得到新的程序运行优先级,用新的程序运行优先级运行命令行"command [arguments...]"。优先级的范围为-20 ~...
分类:
系统相关 时间:
2014-07-24 21:56:42
阅读次数:
314
昨天写的关于解决JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path的方案很好的解决了这个错误,但是它没有完全的解决我的问题,Maven项目依然有一个红色叹号存在。红
色叹号存在的原因是:.classpath配置文件引用了某jar包,但是lib里却不存...
分类:
编程语言 时间:
2014-07-24 17:47:06
阅读次数:
247
tomat在linux服务器上启动报The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.lib...
分类:
其他好文 时间:
2014-07-24 17:35:26
阅读次数:
250
http://blog.csdn.net/longerzone/article/details/17889969python调用linux shell命令使用os 模块及command模块的相关方法可以在python中调用linux shell命令。有时候难免需要直接调用Shell命令来完成一些比较...
分类:
编程语言 时间:
2014-07-24 17:13:40
阅读次数:
322