2010-07-12
fxs_2008:srand 随机数种子与每日一贴用法
fxs_2008注:每日一贴可以用cookie实现,也可以用其他方法实现。如果你有需求,每日随机显示一贴,如何实现? 下面即是个例子: srand(date('ymd')); $total
2010-07-11
win7安装svnserver服务 [sc] openSCManager 失败 5 拒绝 访问拒绝
win7下安装subversion 的svnserver作为服务时遇到了这个问题。而在winxp下安装则没有这个问题。google一下,没有答案。下面是自已找的解决方案:建立一个新文件svnSetup.bat.输入:sc create svnserve binpath= "\"C:\Program Files\VisualSVN Server
2010-07-07
linux下命令行可以连接远程数据库而php的msyql_connect()却不可以的解决方案
遇上了这个该死的问题,linux安全原因:解决:进入 /etc/seLinuxmore config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:
2010-07-07
Windows下的ARP命令
ARP命令的功能:显示或修改ARP协议使用的高速缓存中IP地址和物理地址的映射关系。 arp -a [inet_addr] [-N if_addr]:显示IP地址和物理地址映射表。其中inet_addr指明只显示这个IP地址的物理地址,if_addr指明只显示这个网络接口的物理地址(一
2010-07-05
linux 下apche无法监听端口解决办法(Permission denied: make_sock: could n
想建立一个测试用的虚拟主机,遇到了这个问题:[root@localhost html]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for Se
2010-07-05
如何查看局域网内哪台是DNS服务器?
win下:运行nslookup 任意域名 如:nslookup wennuan.cn 202.106.196.115就是你的dnsC:\Documents and Settings\a>nslookup wennuan.cnServer: linedns.bta.net.c
2010-07-01
Apache 多站点虚拟主机配置方法
Apache 多站点虚拟主机配置方法, 有这类需要的朋友可以参考下。修改配置文件 conf/httpd.conf 1.加入下面两句 NameVirtualHost *:80 Include conf/vhosts 2.在conf目录中建立vhosts目录 然后在 vhosts 目录下面建立相应的站点配置文件 如建立 hhj.i
2010-07-01
php将中文转成unicode四位十六进制码
这个应是unicode码$s = iconv('gbk', 'ucs-2', '丹东');echo join('%u',
str_split(array_pop(unpack('H*0', $s)), 4));老大的代码第一部:转成
二字节unicode第二步:取unicode的四位16进制码
2010-07-01
linux错误httpd: apr_sockaddr_info_get() failed for localhost.t
linux下配置虚拟主机时遇到的问题。httpd: apr_sockaddr_info_get() failed for localhost.termwikidevhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName












