1.用PHP打印出前一天的时间,打印格式是2007年5月10日22:21:212.PHP代码如下:$a="hello";$b=&$a;unset($b);$b="world";echo$a;其结果是?3.PHP代码如下:$str="cd";$$str="landog";$$str.="ok";ech...
分类:
Web程序 时间:
2014-06-28 18:50:17
阅读次数:
182
Select单进程非阻塞TCP echo服务器1. select 描述 #include #include int select( int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, const struct...
分类:
其他好文 时间:
2014-06-28 15:52:47
阅读次数:
135
php heredoc 与 nowdocheredoc 结构heredoc 句法结构:testblogFDIPZONE;echo $content;?>heredoc 结构不能用来初始化类的属性。自 PHP 5.3 起,此限制仅对 heredoc 包括变量时有效。下例将会出错。a;?>heredoc...
分类:
Web程序 时间:
2014-06-28 13:07:25
阅读次数:
245
To free pagecache: echo 1 > /proc/sys/vm/drop_caches;to free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches;to free pagecache, dentries and in...
分类:
系统相关 时间:
2014-06-28 10:41:39
阅读次数:
222
【教程主题】:4.awk和sed 【主要内容】 【1】awk AWK是贝尔实验室1977年搞出来的文本出现神器.之所以叫AWK是因为其取了三位创始人AlfredAho,PeterWeinberger,和BrianKernighan的FamilyName的首字符。要学AWK,就得提...
分类:
其他好文 时间:
2014-06-23 07:23:58
阅读次数:
320
#!/bin/bashawk 'BEGIN{printf "%-60s %-10s %-10s %-10s\n","url","count","time","avg_time"}$NF ~ /^[0-9]/{c1[$11]+=$NFc2[$11]++}END{for(b in c2) { fo...
分类:
其他好文 时间:
2014-06-22 23:56:33
阅读次数:
382
$m = memory_get_usage();echo $m;require_once('include/entryPoint.php');// for ($i=0; $i < 500000; $i++){// $rliBean[] = BeanFactory::newBean('ibm_Reve...
分类:
Web程序 时间:
2014-06-22 23:13:20
阅读次数:
294
在局域网中,管理和操作服务器一般我们都使用客户端的远程桌面连接,由于客户端非正常退出或断网、失电等原因,以及服务器自身宕机等各种原因,导致远程桌面无法连接服务器,而此时,只要服务器还可以Ping通,就用不着我们亲自到机房复位机器了,可以通过远程重启服务器的方法实现远程桌面的再次连接,由于在网上搜索到的远程关机或重启计算机的方法,很多时候都不实用,总结起来不外乎以下几种方法:
1、将被控机器上...
分类:
其他好文 时间:
2014-06-22 19:18:49
阅读次数:
182
是吗hello爱发起#include<stdio.h>
intmain()
{
printf("helloworld!");
}num=521
(1)sed加正则表达式
[[-n"`echo$num|sed‘s/[0-9]//g‘`"]]&&echo"Itisnumber"
(2)变量的子串替换+正则表达式
[[-z"`echo"${num//[0-9]/}"`"]]&&echo"Itisnumber"
(3)变量..
分类:
其他好文 时间:
2014-06-22 11:55:10
阅读次数:
191
没怎么用过这个新特性,其实也不算新啦,试试吧,现在静态类的继承很方便了
<?php
class A {
protected static $def = '123456';
public static function test() {
echo get_class(new static);
}
public static function test2() {
echo sta...
分类:
Web程序 时间:
2014-06-22 07:14:10
阅读次数:
298