Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Mod rewrite test

In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on ......

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 ......

PHP+DOM´´½¨XMLÎļþ

´´½¨ÎĵµÀàÐÍÉùÃ÷
Ò»°ã¶øÑÔ£¬XMLÉùÃ÷·ÅÔÚÎĵµ¶¥²¿¡£ÔÚPHPÖÐÉùÃ÷Ê®·Ö¼òµ¥£ºÖ»ÐèʵÀý»¯Ò»¸öDOMÎĵµÀàµÄ¶ÔÏ󲢸³ÓèËüÒ»¸ö°æ±¾ºÅ¡£²é¿´³ÌÐòÇåµ¥A£º
³ÌÐòÇåµ¥ A
<?php
// create doctype
$dom = new DOMDocument("1.0");
// display document in browser as plain text
// display document in browser as plain text ......

ÕÐƸjsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±

ÉϺ£ÔóÎäÍøÂçÓÐÏÞ¹«Ë¾
ÕÐƸ£ºÕÐƸjsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾­Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾­Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼Æģʽ¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØϵР......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ