Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

phpÔö,¸Ä,ɾ³ý²Ù×÷

<?php
class main extends spController
{
    function index(){
    echo "<p align=center><h1>HIS»ù´¡Êý¾Ýά»¤</h1>";
    echo "<p align=center><h2>¿ÆÊÒ×Öµä</h2>";
    $contentsurl=spUrl("main", "index0");
    echo "<a href={$contentsurl} target=_blank>ÏêϸÐÅÏ¢</a></p>";
    //Ôö¼Ó¿ÆÊÒ 
    $contentsurl=spUrl("main", "add0");
    echo "<a href={$contentsurl} target=_blank>Ôö¼Ó¿ÆÊÒ</a></p>";
    //ͳ¼Æ¿ÆÊÒ 
    $contentsurl=spUrl("main", "stat0");
    echo "<a href={$contentsurl} target=_blank>ͳ¼Æ¿ÆÊÒ</a></p>";
    echo "<p align=center><h2>Ò©Æ·×Öµä</h2></p>";  
    $contentsurl=spUrl("main", "index1");
    echo "<a href={$contentsurl} target=_blank>ÏêϸÐÅÏ¢</a></p>";
 
    echo "<p align=center><h2>ÃÅÕïÐÅÏ¢²éѯ</h2></p>";  
    $contentsurl=spUrl("main", "diagnose");
    echo "<a href={$contentsurl} target=_blank>Õï¶ÏÐÅÏ¢</a></p>";
    } 
  function index0(){   
    echo "<p align=center><h2>¿ÆÊÒ×ÖµäÊý¾Ýά»¤</h2></p>"; 
    $zd_unit_code = spClass("zd_unit_code"); //
    echo "<p>´úÂë  Ãû³Æ  Æ´Òô´úÂë</p>";
    if( $result = $zd_unit_code->findAll() ){
   foreach($result as $value){
  echo "<p>{$value['code']}";
  echo "  {$value['name']}";
  echo "  {$value['py_code']}";
  $contentsurl = spUrl("main", "show0", array('code'=>$value['code'


Ïà¹ØÎĵµ£º

PHP autoload»úÖÆÏê½â

(1) autoload»úÖÆ¸ÅÊö
ÔÚʹÓÃPHPµÄOOģʽ¿ª·¢ÏµÍ³Ê±£¬Í¨³£´ó¼Òϰ¹ßÉϽ«Ã¿¸öÀàµÄʵÏÖ¶¼´æ·ÅÔÚÒ»¸öµ¥¶ÀµÄÎļþÀÕâÑù»áºÜÈÝÒ×ʵÏÖ¶ÔÀà½øÐи´Óã¬Í¬Ê±½«À´Î¬»¤Ê±Ò²ºÜ±ãÀû¡£ÕâÒ²ÊÇOOÉè¼ÆµÄ»ù±¾Ë¼ÏëÖ®Ò»¡£ÔÚPHP5֮ǰ£¬Èç¹ûÐèҪʹÓÃÒ»¸öÀֻ࣬ÐèÒªÖ±½ÓʹÓÃinclude/require½«Æä°üº¬½øÀ´¼´¿É¡£ÏÂÃæÊÇÒ»¸öʵ¼ÊµÄÀý×Ó£º
CODE:
/* ......

phpÏÂͨ¹ýxml_parse½âÎöxmlÎļþ

xml_parse½âÎöxmlÎļþʱºò£¬
ºÜÓпÉÄܲ»½ö½öµ÷ÓÃÒ»´Îcharacter_handler¡£
ËùÒÔÔÚ»ñµÃxml½ÚµãµÄÎı¾ÐÅÏ¢µÄʱºò£¬ÒªÓÃÁ¬½ÓÔËËã".="¡£
²Î¿¼ http://jp2.php.net/manual/ro/function.xml-set-character-data-handler.php
ken at positive-edge dot com
30-Jan-2002
01:20
the function handler is called ......

CentOSͨ¹ýyumÉý¼¶phpµ½5.2.9°æ±¾µÄ·½·¨

CentOSµÄphp°æ±¾Ä¬ÈÏΪ5.1.6£¬È»ºóÔÚ5.2.9°æ±¾Ö®Ç°µÄµÄphp¶¼´æÔÚÒ»¸ö©¶´£¬µ«ÊÇÄ¿Ç°ÍøÉÏºÜ¶àµØ·½¶¼ÎÞ·¨Ê¹ÓÃyum update php*Éý¼¶µ½5.2.9£¬±È½Ï³£¼ûµÄÊÇÉý¼¶µ½5.2.6°æ±¾µÄ£¬¾­¹ýËÑË÷¹úÍâ×ÊÁÏ£¬ÏÖÔÚÖÕÓÚÕÒµ½Ò»ÖÖÉý¼¶CentOSµÄphpµ½5.2.9µÄ·½·¨¡£
ÔËÐÐÏÂÃæÃüÁ
# wget http://download.fedora.redhat.com/pub/epel/5/i386/ep ......

PHPͼ±íÖÆ×÷¹¤¾ß¼¯

ת×Ô£ºhttp://nedvedheqing.javaeye.com/blog/383506
1. PHPÀ©Õ¹
JpGraph£ºhttp://www.aditus.nu/jpgraph/
ChartDirector£ºhttp://www.advsofteng.com/
2. JavaScript
Flot (http://code.google.com/p/flot/
) - Flot Ϊ jQuery ÌṩµÄjavascript´úÂë¿â. ÈÝÒ×ʹÓã¬ÓÐÌØÉ«µÄͼ±í£¬Ìṩ½»»¥¹¦ÄÜ(Äܹ»·Å´óËõСÊý¾ÝÇøÓòµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ