-
php中用socket模拟http中post或者get提交数据的示例代码
本文是一个php中用socket模拟http中post或者get提交数据的示例代码,感兴趣的同学参考下。 示例代码: sock_post.php: <?php function sock_post($url, $data='') { $url = parse_url($url); $url['scheme'] || $url['scheme'] = 'http'; $url['host'] || $url['host'] = $_SERVER['HTTP_HOST']; $url['path'][0] != '/' && $url['path'] = '/'.$url['path']; $query = $data; if(is_array($data)...
PHP 2014-12-18 02:00:07 -
下载控必看:IDM 6.21 Build17 稳定版下载
站长搜索(www.adminso.com):下载控必看:IDM 6.21 Build17 稳定版下载 站长搜索讯 12月17日消息,国外流行下载工具Internet Download Manager更新至6.21 Build 17版本。相较于上个版本,此次更新修复了一些Bug,未见其他改动...
业界动态 2014-12-17 17:15:08 -
php中有关字符串的4个函数substr、strrchr、strstr、ereg介绍和使用例子
本文为大家讲解的是php中有关字符串的4个函数substr、strrchr、strstr、ereg介绍和使用示例详解,感兴趣的同学参考下。 一、取部份字符串...
PHP 2014-12-17 15:48:07 -
Star VC创始人任泉:我们只投让生活更美的产品
文/南七道CVSource最近发布的数据显示,2014年1月-11月,国内创投市场共披露1169起案例,投资金额高达98.03亿美元,其中互联网行业的投资金额规模达52.11亿美元,占据半壁江山。国内创业和投资进入高潮阶段...
互联网 2014-12-17 11:12:07 -
php发送post请求示例代码
本文为大家讲解的是php发送post请求示例代码,感兴趣的同学参考下. function do_post_request($url, $data, $optional_headers = null) { $params = array('http' => array( 'method' => 'POST', 'content' => $data )); if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; } $ctx = stream_context_create($params); $fp = @fopen($url, 'rb', false, $ctx); if (!$fp) { throw new Exception(&...
PHP 2014-12-17 07:36:04 -
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 -
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下获取上个月、下个月、本月的日期(strtotime,date示例)
本文为大家讲解的是PHP下获取上个月、下个月、本月的日期(strtotime,date示例),感兴趣的同学参考下. 今天写程序的时候,突然发现了很早以前写的获取月份天数的函数,经典的switch版,但是获得上月天数的时候,我只是把月份-1了,估计当时太困了吧,再看到有种毛骨悚然的感觉,本来是想再处理一下的,但是一想肯定还有什么超方便的方法,于是找到了下面这个版本,做了一点小修改。 获取本月日期: function getMonth($date){ $firstday = date("Y-m-01",strtotime($date)); $lastday = date("Y-m-d",strtotime("$firstday +1 month -1 day")); return array($firstday,$lastday); ...
PHP 2014-12-17 04:33:04 -
PHP 读取Postgresql中的数组
本文为大家讲解的是PHP 读取Postgresql中的数组,需要的朋友可以参考一下 function getarray_postgresql($arraystr) { $regx1 = '/^{(.*)}$/'; $regx2 = "/"((\\\\|\\"|[^"])+)"|[^,]+/"; $regx3 = '/^[^"].*$|^"(.*)"$/'; $match = null; preg_match( $regx1,$arraystr,$match); $str = $match[1]; &...
PHP 2014-12-16 23:48:08 -
微软:Metro版PPT创意简报Sway开放试用
站长搜索(www.adminso.com):微软:Metro版PPT创意简报Sway开放试用 站长搜索讯 12月16日消息,创意简报工具Sway是微软在Office家族推出的新产品,很多朋友对它还不是很了解。什么是Sway?怎么使用Sway?Sway是一款通过您的设备,用全新方式诠释您想法的应用,微软声称它能够比PPT更加优秀...
业界动态 2014-12-16 21:45:16 -
我眼中的TD-SCDMA
站长搜索(www.adminso.com):我眼中的TD-SCDMA 最近这段时间,财新网一篇名为《TD式创新》的文章在网上引起了轩然大波。由于文章引用了大量业内周知的观点,一时间得到了广泛的传播...
业界动态 2014-12-16 17:45:06