phpʵÏÖÒ»¸öÈÕÀúÀà
<?php
date_default_timezone_set("Etc/GMT-8");
header("content-type:text/html; charset=utf-8");
/**
* ×Ô¼º¶¨ÒåµÄÒ»¸öÉú³ÉÈÕÀúµÄÀà
* @author ÕÅΰ²Ó<yuanfen860913@163.com>
* @version 1.0.0
*
*/
class myCalendar
{
/**
* ¶¨Òåÿ¸öÔ¶àÉÙÌ졾²»ÊÇÈðÄêµÄ¡¿
*
* @var array
*/
private $howManyDayPreMonth1=array(
1=>31,
2=>28,
3=>31,
4=>30,
5=>31,
6=>30,
7=>31,
8=>31,
9=>30,
10=>31,
11=>30,
12=>31,
);
/**
* ¶¨Òåÿ¸öÔ¶àÉÙÌ졾ÈðÄêµÄ¡¿
*
* @var array
*/
private $howManyDayPreMonth2=array(
1=>31,
2=>29,
3=>31,
4=>30,
5=>31,
6=>30,
7=>31,
8=>31,
9=>30,
10=>31,
11=>30,
12=>31,
);
/**
* Ò»¸ö´æ·Åµ±ÌìÐÅÏ¢µÄÒ»¸öÊý×é
*
* @var array
*/
private $todayInfoArray;
/**
* ÐÇÆÚÖÐÎĶ¨Òå
*
* @var array
*/
private $weekName=array(
0=>"ÐÇÆÚÌì",
1=>"ÐÇÆÚÒ»",
2=>"ÐÇÆÚ¶þ",
3=>"ÐÇÆÚÈý",
4=>"ÐÇÆÚËÄ",
5=>"ÐÇÆÚÎå",
6=>"ÐÇÆÚÁù"
);
/**
* ¹¹Ô캯Êý
* ³õʼ»
Ïà¹ØÎĵµ£º
½øÐÐÎļþµÄ¶ÁºÍд£¬ÏÈ´ò¿ªÒ»¸öÎļþ£¬È»ºó¿ªÊ¼¶Á»òÕßдÎļþ£¬×îºóÔÙ¹ØϵÕâ¸öÎļþ×ÊÔ´¡£
È磬ÎļþµÄ¶Á²Ù×÷£º
<?php
$file = fopen('your file path','r');
while(!feof($file)){ //µ±Ã»ÓжÁÈ¡µ½Îļþ½á⣬¼ÌÐøÑ»·¶ÁÈ¡²Ù×÷
$line = fgets($file); //¶ÁÈ¡µ½Ò»ÐеÄÄÚÈÝ
echo $line.'<br/>';
}
fclose($file) ......
×Ô¶¯×ªÏò£¬Ò²½Ð×Ô¶¯Öض¨Ïò¡£×Ô¶¯Ìøת£¬Ö¸µ±·ÃÎÊÓû§µÇ½µ½Ä³Íøվʱ£¬×Ô¶¯½«Óû§×ªÏòÆäËüÍøÒ³µØÖ·µÄÒ»ÖÖ¼¼Êõ¡£×ªÏòµÄÍøÒ³µØÖ·¿ÉÒÔÊÇÍøÕ¾ÄÚµÄÆäËüÍøÒ³£¬Ò²¿ÉÒÔÊÇÆäËüÍøÕ¾¡£Í¨³£Çé¿öÏ£¬ä¯ÀÀÆ÷»áÊÕµ½Ò»¸öÍøÒ³£¬¸ÃÒ³Ã溬ÓÐ×Ô¶¯¼ÓÔØÒ»ÆäËüÍøÒ³µÄ´úÂë¡£¸ÃÒ³ÃæÓпÉÄÜÔÚ·þÎñÆ÷¶Ë±»×ª»»£¬ÕâÑùµÄ»°£¬ä¯ÀÀÆ÷Ö»ÊÕµ½Ò»¸öÒ³Ã棬¶ø×Ô¶¯×ª ......
µ±´¦Àí»ùÓÚXMLÓ¦ÓóÌÐòʱ£¬¿ª·¢Õß¾³£ÐèÒª½¨Á¢XML±àÂëÊý¾Ý½á¹¹¡£ÀýÈ磬WebÖлùÓÚÓû§ÊäÈëµÄXML״̬ģ°å£¬·þÎñÆ÷ÇëÇóXMLÓï¾ä£¬ÒÔ¼°»ùÓÚÔËÐÐʱ¼ä²ÎÊýµÄ¿Í»§ÏìÓ¦¡£
¾¡¹ÜXMLÊý¾Ý½á¹¹µÄ¹¹½¨±È½Ï·Ñʱ£¬µ«Èç¹ûʹÓóÉÊìµÄPHP DOMÓ¦ÓóÌÐò½Ó¿Ú£¬Ò»Çж¼»á±äµÃ¼òµ¥Ã÷ÁË¡£±¾ÎĽ«ÏòÄã½éÉÜPHP DOMÓ¦ÓóÌÐò½Ó¿ÚµÄÖ÷Òª¹¦ÄÜ£¬ÑÝʾÈçºÎÉú³É ......
<?php
$mysql_server_name = "localhost";
$mysql_username = "root";
$mysql_password = "root";
......
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
......