-
PHP Catchable fatal error: Object of class * could not be converted to string错误解决方法
本文为大家讲解的是php错误:PHP Catchable fatal error: Object of class * could not be converted to string的解决方法,感兴趣的同学参考下。 错误: PHP Catchable fatal error: Object of class * could not be converted to string 原因: 单从字面上理解是对象不能转换为字符串,由于 object转换成 string 時才会发生这个严重错误(fatal error)...
PHP 2014-12-17 05:03:04 -
php格式输出文件var_export函数实例讲解
本文为大家讲解的是php格式输出文件var_export函数实例讲解,感兴趣的同学参考下. var_export:php 4 >= 4...
PHP 2014-12-17 04:57:04 -
mysql错误:Access denied for user 'root'@'localhost' (using password: YES)解决方法
本文为大家讲解的是mysql错误:Access denied for user 'root'@'localhost' (using password: YES)解决方法,感兴趣的同学参考下. 错误描述 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方案 windows环境 编辑mysql配置文件my.ini(不知道在哪请搜索),在[mysqld]这个条目下加入 skip-grant-tables 保存退出后重启mysql 1.点击“开始”->“运行”(快捷键Win+R)。 2.启动:输入 net stop mysql 3.停止:输入 net start mysql cmd mysql -u root -p 回车 如果在cmd下报...
数据库操作教程 2014-12-17 04:51:04 -
mysql错误: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist原因及解决方法
本文为大家讲解的是mysql错误: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist原因及解决方法,感兴趣的同学参考下. 错误描述 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 错误原因 mysql 这个库不存在,所以导致数据库连接不上。 解决方法 把Mysql 安装目录下的 data 文件夹里的mysql文件夹 copy 到 数据库的存放路径中(从my.ini可以看到) ...
数据库操作教程 2014-12-17 04:39:03 -
php使用exec shell命令注入的方法讲解
本文为大家讲解的是php使用exec shell命令注入的方法讲解,感兴趣的同学参考下. 使用系统命令是一项危险的操作,尤其在你试图使用远程数据来构造要执行的命令时更是如此。如果使用了被污染数据,命令注入漏洞就产生了...
PHP 2014-12-17 04:09:03 -
php空间不支持socket但支持curl时recaptcha的用法
本文为大家讲解的是php空间不支持socket但支持curl时recaptcha的用法,需要的朋友可以参考下。 1.修改recaptchalib.php中的两个方法 function _recaptcha_http_post($host, $path, $data, $port = 80) { $req = _recaptcha_qsencode ($data); $response = ''; $url = $host.$path; $post_data = $req; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // 我们在POST数据哦! curl_setopt($ch, CURLOPT_POST, 1); // 把post的变量加上 curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); $output = curl_e...
PHP 2014-12-17 03:54:03 -
PHP遍历目录函数opendir()、readdir()、closedir()、rewinddir()总结
本文为大家整理了PHP遍历目录函数opendir()、readdir()、closedir()、rewinddir()总结,并给出了这些函数的例子做了一个简易文件浏览器,需要的朋友可以参考下 在进行PHP编程时,需要对服务器某个目录下面的文件进行浏览,通常成为遍历目录。取得一个目录下的文件和子目录,就需要用到opendir()函数、readdir()函数、closedir()函数和rewinddir()函数...
PHP 2014-12-17 01:51:04 -
PHP 面向对象程序设计(oop)学习笔记 (四) - 异常处理类Exception
本文为大家介绍的是PHP 面向对象程序设计(oop)学习笔记 (四) - 异常处理类Exception,感兴趣的同学参考下。 异常经常被用来处理一些在程序正常执行中遇到的各种类型的错误...
PHP 2014-12-17 01:06:07 -
php实现百度的自动ping示例代码
本文为大家提供的是一个php实现的百度自动ping示例代码,感兴趣的同学参考下。 以下为自动ping百度代码: <?php function postUrl($url, $postvar) { $ch = curl_init(); $headers = array( "POST ".$url." HTTP/1.0", "Content-type: text/xml;charset=\"utf-8\"", "Accept: text/xml", "Content-length: ".strlen($postvar) ); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEA...
PHP 2014-12-17 00:30:08 -
Skype同声翻译预览版登陆Win10/Win8.1商店
站长搜索(www.adminso.com):Skype同声翻译预览版登陆Win10/Win8.1商店 站长搜索讯 利用Skype翻译预览版,在视频和语音通话中实现同声翻译。在WPC2014会议上,微软面对14000参与者展示了Skype实时同步翻译功能...
业界动态 2014-12-16 22:09:23 -
同传失业?新版Skype支持语音聊天实时翻译
#endText .video-info a{text-decoration:none;color: #000;} #endText .video-info a:hover{color:#d34747;} #endText .video-list li{overflow:hidden;float: left; list-style:none; width: 132px;height: 118px; position: relative;margin:8px 3px 0px 0px;} #entText .video-list a,#endText .video-list a:visited{text-decoration:none;color:#fff;} #endText .video-list .overlay{text-align: left; padding: 0px 6px; background-color: #313131; font-size: 12px; width: 120px; position: absolute; bottom: 0px; left: 0p...
互联网 2014-12-16 22:06:09 -
微软黑科技:Skype同声翻译背后还有什么
站长搜索(www.adminso.com):微软黑科技:Skype同声翻译背后还有什么 站长搜索讯 几个小时前,微软宣布Skype翻译预览计划的第一阶段,首先支持英文和西班牙文两种语言的同声翻译,登陆Win10/Win8.1。Skype翻译是数十年研究的结果,包括语音识别、自动翻译、机器学习技术等...
业界动态 2014-12-16 21:54:11