-
Win8系统如何在桌面开启Metro APPs
尝试过Win8系统的用户都知道Metro界面,里面的应用需要前往应用商店下载,并且只显示到Metro界面。肯定有用户想要在传统桌面启动Metro APPs,而不需要特地点到Metro界面...
系统程序 2014-12-20 07:42:07 -
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 解决方法
本文为大家讲解的是PHP错误Parse error: syntax error, unexpected end of file in test.php on line 解决方法,感兴趣的同学参考下。 今天在写PHP程序的时候总是出现这样的错误:Parse error: syntax error, unexpected end of file in *.php on line *,然后我就根据提示,找到那个文件,然后错误中总是提示最后一行出错,我找到最后一行发现是</html>,晕的,这能有什么错误,找了好久才找到问题所在,拿来分享...
PHP 2014-12-19 17:51:06 -
php中strtotime函数用法详解
本文为大家讲解的是php中strtotime函数用法详解,感兴趣的同学参考下. strtotime(字符串$时间[,诠释$现在])int strtotime(string $time [,int $now] 该函数期望得到一个包含美国英语日期格式,并会尝试解析成一个Unix时间戳(多少秒自1970年1月1日00:00:00星期一该格式),相对于现在提供的时间戳,或当前时间如果现在不提供 这个函数将使用TZ环境变量(如果有)来计算时间戳,自PHP 5...
PHP 2014-12-19 16:18:06 -
PHP Warning: array_merge() : Argument #1 is not an array in...错误解决方法
本文为大家讲解了php错误PHP Warning: array_merge() : Argument #1 is not an array in....
PHP 2014-12-19 11:39:04 -
php+js iframe实现上传头像界面无跳转(刷新)示例
本文是一个php+js iframe实现上传头像界面无跳转(刷新)示例,感兴趣的同学参考下。 上传头像,界面无跳转的方式很多,我用的是加个iframe那种...
PHP 2014-12-19 05:42:03 -
php错误:array_slice() expects parameter 1 to be array, null given in解决方法
本文为大家讲解的是PHP Warning: array_slice() expects parameter 1 to be array, null given in错误的原因及解决方法,感兴趣的同学参考 错误描述 php报错 PHP Warning: array_slice() expects parameter 1 to be array, null given in /xxx.php on line xxx 错误原因 array_slice函数的作用是从指定的数组中取出一段数据,如果给定的数组为空,就会报出这样的错误 解决方法 可以用@屏蔽,也可以在使用array_slice前先用empty来判断...
PHP 2014-12-19 04:24:03 -
PHP中return 和 exit 、break和contiue 区别与用法
本文以示例的方式为大家讲解了PHP中return 和 exit 、break和contiue 区别与用法,感兴趣的同学参考下. return、break和contiue是语言结构,就如同if语句之类的,但是exit却是个函数 先说一下exit函数的用法。 作用: 输出一则消息并且终止当前脚本...
PHP 2014-12-19 03:57:03 -
PHP Fatal error: Call to a member function funname() on a non-object in解决方法
本文为大家讲解的是PHP Fatal error: Call to a member function funname() on a non-object in解决方法,感兴趣的同学参考下. 错误描述 完整错误提示PHP Fatal error: Call to a member function 函数名() on a non-object in /xxx...
PHP 2014-12-19 03:00:05 -
php+iframe实现隐藏无刷新上传文件示例
本文是一个php+iframe实现隐藏无刷新上传文件示例代码,感兴趣的同学参考下. 首先ajax不能上传文件,这误导了我有段时间,今晚睡不着就照着说明做了个无刷新上传文件 其实原理很简单 <form enctype="multipart/form-data" method="POST" target="upload" action="http://localhost/class.upload.php" > <input type="file" name="uploadfile" /> <input type="submit" /> </form> <iframe name="upload" style="display:none"></iframe> 和一般的<form>标签相比多了...
PHP 2014-12-19 02:15:12 -
PHP源码之explode分析
本文为大家讲解的是PHP源码之explode分析,感兴趣的同学参考下。 最近一直在想有关字符串操作的一些效率上的事情,截取字串的问题,都会避免不了重新分配空间的消耗,也顺带看了explode这个函数的源码,理解下,拿出自己的分析共享下 当我们需要将一个数组根据某个字符或字串进行分割成数组的时候,explode用的很happy,但是你知道~explode是怎么工作的么~~ 首先可以肯定的是,explode也是会分配空间的,毫无疑问...
PHP 2014-12-19 02:06:04 -
PHP Fatal error: Maximum execution time of 30 seconds exceeded in 解决方法
本文为大家讲解的是PHP Fatal error: Maximum execution time of 30 seconds exceeded in 解决方法,感兴趣的同学参考下. 错误描述 PHP Fatal error: Maximum execution time of 30 seconds exceeded in /文件名...
PHP 2014-12-19 01:54:03 -
PHP表单验证的3个函数ISSET()、empty()、is_numeric()的使用方法
本文为大家介绍了PHP表单验证的3个函数ISSET()、empty()、is_numeric()的使用方法,感兴趣的同学参考下。 ISSET();——适合于检测是否存在这个参数...
PHP 2014-12-19 01:09:06