Linux ƽ̨Ï PHP °²×° Æô¶¯
php°²×°
# tar xzvf php-5.2.5.tar.gz
# cd php-5.2.5
./configure --prefix=/home/redadmin/php --with-apxs2=/home/redadmin/apache/bin/apxs --with-mysql=/home/redadmin/mysql --enable-mbstring=all --enable-track-vars
# make && make install
# cp php.ini-dist /home/redadmin/php/lib/php.ini
# cd /home/redadmin/php/lib/
//ÐÞ¸ÄPHP.INIÎļþ
# vi php.ini
// ½«×¢Ê͵ô´úÂë·Å¿ª
extension=php_dbase.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_zip.dll
// ÐÞ¸ÄApacheÅäÖÃÎļþ
# vi apache/conf/httpd.conf
// Ìí¼ÓÏÂÃæÎÄ×Ö
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .php3 .php4
// ÐÞ¸ÄÏÂÃæÄÚÈÝ
ÐÞ¸ÄÇ°£º
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
Options Indexes FollowSymLinks
Ð޸ĺó£º
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
Options FollowSymLinks
// APACHE ÖØÆô¶¯
# cd /home/redadmin/pligg/apache/bin/
# ./apachectl restart
Ïà¹ØÎĵµ£º
1£¬DateTimeÀàÐÍÊý×Ö
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
µ±Ç°Ê±¼äSystem.DateTimeµÄ=ÐÂSystem.DateTimeµÄ£¨£©;
1.1Сʱ·ÖÖÓµ±Ç°ÈÕÆÚÃ룬µ±Ç°Ê±¼ä= System.DateTime.Now;
1.2¼ì²é±¾Äê¶ÈÁ®ÕþÄê= currentTime.Year;
1.3µ±Ç°Ô·ÝÁ®Õþ¸öÔÂ= currentTime.Month;
1,4²ÉÈ¡µ±ÌìÁ®ÕþÌì= currentTime.Day;&n ......
ÍøÉÏÕÒµ½µÄ£º¹²ÏíÒ»ÏÂ
<?
//¡¾¾¯¸æ¡¿:δ¾Ðí¿ÉÇëÎðËæ±ãÐÞ¸Ä
//-----------------------------------------------------------------------------------
-------
//-----------------------------------------------------------------------------------
-------
//
// ¡¾ÎļþÃû¡¿: c_check.inc
// ¡¾× ......
Ò»¸ö¼òµ¥µÄÀý×Ó¶ÁÈ¡CSVÎļþ£º
<?php
$handle=fopen("test.csv","r");
echo "<table border=2>";
//ÅäºÏwhileÑ»·¶ÁÈ¡Îļþ
while($data=fgetcsv($handle,1024))
{
list($user,$pwd,$partment,$title)=$data;
echo "<tr>
<td>$user</td>
<td>$pwd< ......
<?php
class SubPages{
private $each_disNums;//ÿҳÏÔʾµÄÌõÄ¿Êý
private $nums;//×ÜÌõÄ¿Êý
private $current_page;//µ±Ç°±»Ñ¡ÖеÄÒ³
private $sub_pages;//ÿ´ÎÏÔʾµÄÒ³Êý
private $pageNums;//×ÜÒ³Êý
private $page_array = array();//ÓÃÀ´¹¹Ôì·ÖÒ³µÄÊý×é ......