易截截图软件、单文件、免安装、纯绿色、仅160KB

php interface implements multibus

<?php
/*
 * Created on 2009-10-28
 * 分子如梦o(╯□╰)o
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 interface pusb{
    function verson();
    function type();
 }
 class mouse implements pusb{
     function verson(){
        echo "USB 2.0版本;";
    }
     function type(){
        echo "鼠标<br>";
    }
 }
 class video implements pusb{
    function verson()
    {
     echo "USB 1.0版本;";
    }
    function type(){
        echo "视频";
    }
 }
class myPC{
    function output($that){
        $that->verson();
        $that->type();
    }
}
$p = new myPc();
$mouse = new mouse();
$video = new video();
$p->output($mouse);
$p->output($video);
if($p instanceof myPc){
 echo "<BR>YES.myPc";
}
?>


相关文档:

PHP图像图形处理技术


<?php
     header("content-type:image/png");  //定义输出的图像类型;
     $image=imagecreate(300,155);        //新建图像;
     $bg=imagecolorallocate($image,220,40,120);   &nbs ......

Linux下 php5 MySQL5 Apache2 安装与配置


mkdir /downloads
chown -R root:root /downloads
chmod -R 774 /downloads
一、安装Apache2
    下载地址:http://www.apache.org/ --> HTTP Server --> from a mirror
    1. 获取mysql源码
        shell> cd /downloads
     ......

php显示服务器时间代码

<div id="time" align="center">time </div> 
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
......

php中substr的用法详解

php中substr的用法详解
php.net中关于substr的说明很简单:
start
If start is non-negative, the returned string will start at the start 'th position in string , counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so for ......

PHP多语言系统的一种实现方式[转]


在网站设计中我们经常会遇到需要多语言支持的情况。多语言系统按照支持的方式一般可分为两种:
1.支持多语言,但不支持多种语言的同时存在,也就是说要么是中文要么是英文或者其他,这在一些需要国际化支持的网页系统中经常用来,以便方便用户本地化。 2.支持多语言并可同时浏览不同语言版本的网页。今天我想讨 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号