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'
Ïà¹ØÎĵµ£º
(1) autoload»úÖƸÅÊö
ÔÚʹÓÃPHPµÄOOģʽ¿ª·¢ÏµÍ³Ê±£¬Í¨³£´ó¼ÒÏ°¹ßÉϽ«Ã¿¸öÀàµÄʵÏÖ¶¼´æ·ÅÔÚÒ»¸öµ¥¶ÀµÄÎļþÀÕâÑù»áºÜÈÝÒ×ʵÏÖ¶ÔÀà½øÐи´Óã¬Í¬Ê±½«À´Î¬»¤Ê±Ò²ºÜ±ãÀû¡£ÕâÒ²ÊÇOOÉè¼ÆµÄ»ù±¾Ë¼ÏëÖ®Ò»¡£ÔÚPHP5֮ǰ£¬Èç¹ûÐèҪʹÓÃÒ»¸öÀֻ࣬ÐèÒªÖ±½ÓʹÓÃinclude/require½«Æä°üº¬½øÀ´¼´¿É¡£ÏÂÃæÊÇÒ»¸öʵ¼ÊµÄÀý×Ó£º
CODE:
/* ......
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 ......
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 ......
´´½¨ÎĵµÀàÐÍÉùÃ÷
Ò»°ã¶øÑÔ£¬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ÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼Æģʽ¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØϵР......