首页 > 资讯列表 >  本页面生成OnTime专题报道,OnTime滚动新闻,OnTime业界评论等相关报道!
  • 生成ubuntu自动切换壁纸xml文件的php代码

    生成ubuntu自动切换壁纸xml文件的php代码

    本文是一个php实现的可以用来生成ubuntu自动切换壁纸xml文件的php代码,感兴趣的同学参考下。 运行代码后在图片目录下会生成yuxing.xml,方便ubuntu自动切换壁纸. <?php /* * 生成ubuntu自动切换壁纸xml文件 */ //图片目录 $dir = '/home/yuxing/background'; $hd = opendir($dir) or die('can not open dir'); $files = array(); while($file = readdir($hd)) { $tem = "$dir/$file"; if (is_file($tem) && in_array(strtolower(substr(strrchr($file,'.'), 1)), array('jpg', 'gif'))) $files[] = $tem; } closedir($hd); u...

    PHP 2014-12-19 16:12:05
  • PHP Warning:  array_merge() : Argument #1 is not an array in...错误解决方法

    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
  • JS中encodeURIComponent函数用php解码的代码

    JS中encodeURIComponent函数用php解码的代码

    本文是一个php实现的可以用来地JS中encodeURIComponent解码的代码,感兴趣的同学参考下. 在JS中使用了encodeURIComponent对中文进行编码在PHP中使用iconv('UTF-8','gb2312',$q);就可以得到你需要的字串了,其中gb2312根据你实际应用来定如还不明白为什么看下面的文章 JS中encodeURIComponent函数给中文编码后,如何用php解码?? 前提:编码前的中文可能是gbk,gb2312,utf-8等。 urldecode() iconv() 在JS中使用了encodeURIComponent对中文进行编码在PHP中使用iconv('UTF-8','gb2312',$q);就可以得到你需要的字串了,其中gb2312根据你实际应用来定如还不明白为什么看下面的文章 URL编码转换,escape() encodeURI() encodeURIComponent() 本文介绍对url编码的三种函数 escape() ,en...

    PHP 2014-12-19 10:51:04
  • php+js iframe实现上传头像界面无跳转(刷新)示例

    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错误: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 区别与用法

    本文以示例的方式为大家讲解了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 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
  • CentOS 6.2使用yum安装LAMP以及phpMyadmin详解

    CentOS 6.2使用yum安装LAMP以及phpMyadmin详解

    本文为大家讲解的是CentOS 6.2下使用yum安装LAMP以及phpMyadmin详解,yum安装虽然简单,但定制性不强,感兴趣的同学参考下。 介绍如何在CentOs6.2下面使用YUM配置安装LAMP环境,一些兄弟也很喜欢使用编译的安装方法,个人觉得如果不是对服务器做定制,用yum安装稳定简单,何必去download&make&make install呢...

    PHP 2014-12-19 02:57:03
  • php+iframe实现隐藏无刷新上传文件示例

    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 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 Fatal error:  Maximum execution time of 30 seconds exceeded in /文件名...

    PHP 2014-12-19 01:54:03
  • php中echo()和print()、require()和include()等函数的区别

    php中echo()和print()、require()和include()等函数的区别

    本文为大家整理总结了php中echo()和print()、require()和include()等函数的区别,感兴趣的同学参考下. 1.echo和print的区别 PHP中echo和print的功能基本相同(输出),但是两者之间还是有细微差别的。echo输出后没有返回值,但print有返回值,当其执行失败时返回flase...

    PHP 2014-12-19 01:21:05
  • PHP表单验证的3个函数ISSET()、empty()、is_numeric()的使用方法

    PHP表单验证的3个函数ISSET()、empty()、is_numeric()的使用方法

    本文为大家介绍了PHP表单验证的3个函数ISSET()、empty()、is_numeric()的使用方法,感兴趣的同学参考下。 ISSET();——适合于检测是否存在这个参数...

    PHP 2014-12-19 01:09:06

站长搜索

http://www.adminso.com

Copyright @ 2007~2025 All Rights Reserved.

Powered By 站长搜索

打开手机扫描上面的二维码打开手机版


使用手机软件扫描微信二维码

关注我们可获取更多热点资讯

站长搜索目录系统技术支持