当前位置:首页 > 搜索和 c 相关的文章

php css实现tab选项卡原理

添加日期:2014-08-06 10:42:18 发布:smiling 
我们要写个css如 on{}当前状态 off{}平常状态下面来看看实现原理,就是根据,如下代码:if($_get[& 39;id& 39;]){$class=& 39;on& 39;;}else{$class=& 39;off& 39;;}<divclass=<?=$class?>>< div> 开源代码phpfensi com...

php array_unique 处理后json_encode注意事项

添加日期:2014-08-06 09:54:21 发布:smiling 
php array_unique 处理后json_encode注意事项array_unique() 先将值作为字符串排序,然后对每个值只保留第一个遇到的键名,接着忽略所有后面的键名,这并不意味着在未排序的 array 中同一个值的 ...

php正则指定字符串内容preg_match函数之说明

添加日期:2014-08-06 09:50:12 发布:smiling 
php正则指定字符串内容preg_match函数之说明,虽然代码不多,但简单明了,代码如下:preg_match(& 39; ^(?!string) & 39;, & 39;aa& 39;) === true这个用来验证一个字符串是否是非& 39;string& 39; ...

eAccelerator加速php程序

添加日期:2014-08-05 17:13:55 发布:smiling 
什么是eaccelerator概念:eaccelerator 是一个免费开源的php加速、优化、编译和动态缓存的项目,它可以通过缓存php代码编译后的结果来提高php脚本的性能,使得一向很复杂和离我们很远的php脚本编译问 ...

php memcached安装与使用

添加日期:2014-08-05 17:06:14 发布:smiling 
1 简介memcache模块是一个高效的守护进程,提供用于内存缓存的过程式程序和面向对象的方便的接口,特别是对于设计动态web程序时减少对数据库的访问 memcache也提供用于通信对话(session_handler)的 ...

php 正则html表格数组保存csv与转换数组代码

添加日期:2014-08-05 16:18:34 发布:smiling 
<?php html表格的每行转为csv格式数组functionget_tr_array($table){ php开源代码$table=preg_replace("& 39;<td[^>]*?>& 39;si",& 39;"& 39;,$table);$table=str_replace("< td>",& 39;",& 39;, ...

cookie 函数 session mail 数据库连接 xml

添加日期:2014-08-05 15:00:24 发布:smiling 
<?php 写cookiesetcookie("user","wang70937",time()+60); sessionsession_start();if(isset($_session[& 39;views& 39;]))$_session[& 39;views& 39;]=$_session[& 39;views& 39;]+1;else$_sess ...

php COM 连接ADODB.Connection数据库

添加日期:2014-08-05 14:50:49 发布:smiling 
$iishost = new com("npoint_m host"); 加载组件,$r = $iishost->iisstate(10, 1, "", "", "", ""); 运行组件功能,返回参数echo $r; 返回参数,切换net版本为netstate(ifid, dirname ...

php ExcelReader读取excel文件

添加日期:2014-08-05 14:13:47 发布:smiling 
一、 概述php-excelreader 是一个读取 excel xsl 文件内容的一个php类,它的下载网址:http: sourceforge net projects phpexcelreader 测试用excel文件:测试 xls,文件名:phpexcelreader zip包 ...

php curl用法

添加日期:2014-08-05 14:11:00 发布:smiling 
在php使用curl时必须先在php ini中开启extension=php_curl dll前面的;去了才行,curl是php中一款内置的浏览器,它可以模仿用户浏览信息进行网站浏览,等下面来看一实例,代码如下:functionpostpage($ur ...

php ereg_replace函数

添加日期:2014-08-05 13:50:17 发布:smiling 
$string="thisisatest";echostr_replace("is","was",$string);echoereg_replace("()is","1was",$string); 其中1就是第一个括号中空格echoereg_replace("(()is)","2was",$string); 其中2就是第二 ...

php curl_setopt与模拟用户登录

添加日期:2014-08-05 13:23:12 发布:smiling 
bool curl_setopt (int ch, string option, mixed value)curl_setopt()函数将为一个curl会话设置选项,option参数是你想要的设置 value是这个选项给定的值,该例子为模拟登录,代码如下:$cooki ...