WindowsXP搜索PHP、XML等文件内的包含文字的设置方法
当我们用WINDOWS搜索某包含某文字的文件时,可以在“包含文字”处填上搜索词。但是一些不常见的后缀名文件WINDOWS不会搜索,如:,.log、.dll、.js、.asp、.xml、.xsl、.hta、.css、.wsh、.cpp、.c 或 .h等及无后缀名的文件。对于我等程序爱好者来说实在太不方便了,虽然有“文本替换大师”等软件能做这工作,但有时还是直接用WIN方便。
解决办法是,修改注册表:
打到如下子键:
HKEY_LOCAL_MACHINE \ SYSTEM\CurrentControlSet \ Control\ContentIndex
将 “FilterFilesWithUnknownExtensions”的 DWORD 值设置为 1。
搞定
相关文档:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
namespace WebApplication2
{
/// <summary>
/// XMLHelper XML文档操作管理器
&nb ......
原帖地址:http://www.phpma.com/english/20071215/640.html
Description
array explode
( string separator, string string [, int limit])phpma.com
Returns an array of strings, each of which is a substring of string
formed by splitting it on boundaries formed by the string separator
. If limit
is ......
__autoload($classname){
}
当PHP找不到类文件会调用这个方法,当注册了自己的函数或方法时,PHP不会调用__autoload()函数,而会调用自定义的函数
spl_autoload_register('func_name');
spl_autoload_register(array('class_name','method_name')); ......
$client = new SoapClient('http://www.webxml.com.cn/WebServices/ChinaZipSearchWebService.asmx?WSDL');
#$ret = $client->__call('getSupportProvince', array());
#$ret = $client->__call('getSupportProvinceCity', array());
$ret = $client->__call('getSupportCity', array('callP ......
/*
用PHP的DOM控件来创建XML输出
设置输出内容的类型为xml
*/
header('Content-Type: text/xml;');
//创建新的xml文件
$dom = new DOMDocument('1.0', 'utf-8');
//建立<response>元素
$response = $dom->createElement('response');
$dom->appendChild($response);
//建立<books>元素并将其作 ......