redflag5.0°²×°Apache+MySQL+PHPʵ¼
LinuxÅäÖÃAPACHE2.2.4 + PHP5.2.1 + MYSQL5.0.37 + GD¿â
µÚÒ»²½£º°²×°RedFlag Linux5.0
°²×°ÏµÍ³Ê±ÇëÎñ±Ø°²×°¿ª·¢¹¤¾ß°üºÍKDE¿ª·¢¹¤¾ß°ü£¬WWW·þÎñÆ÷ºÍSQL·þÎñÆ÷²»Òª°²×°£¬·ñÔò¿ÉÄÜ»á³öÏÖδ֪µÄ´íÎó¡£
µÚ¶þ²½£ºÈ·¶¨linuxϵͳÊÇ·ñ°²×°gcc±àÒëÆ÷
Ê×ÏÈ,GCCÒªÓÐ,²»È»Ê²Ã´¶¼²»ÄÜ×ö.¿ÉÒÔÓÃgcc -vÀ´²é¿´ÊÇ·ñ°²×°ÁËGCC,
#gcc -v
gcc version x.x.x
ÓÐÒÔÉÏÀàËÆÐÅϢ˵Ã÷ÒÑÓÐGCC,
Èç¹ûÄãûÓÐ,ÇëÏÈ×°ºÃËü
µÚÈý²½£ºÇëÏÂÔØÒÔÏÂËùÓеĶ«Î÷
httpd-2.2.4.tar.gz
MySQL for redflag rpm:
mysql-4.1.10a-1.RHEL4.1.i386.rpm
mysql-bench-4.1.10a-1.RHEL4.1.i386.rpm
mysqlclient10-3.23.58-4.RHEL4.1.i386.rpm
mysqlclient10-devel-3.23.58-4.RHEL4.1.i386.rpm
mysql-devel-4.1.10a-1.RHEL4.1.i386.rpm
mysql-python-1.0.0-1.RHEL4.1.i386.rpm
mysql-server-4.1.10a-1.RHEL4.1.i386.rpm
perl-DBD-mysql-2.9004-3.1.i386.rpm
php-5.2.3.tar.gz
£ªlibxml2-2.6.11.tar.gz
£ªzlib-1.2.1.tar.gz
£ªlibpng-1.2.5.tar.gz
£ªgd-devel-1.8.4-11.i386.rpm
£ªlibmcrypt-2.5.7.tar.gz
jpegsrc.v6b.tar.gz
¿ÉÄÜÄãµÄµçÄÔ²»ÐèÒªÕâô¶à.µ«×îºÃ¶¼ÏÂÔØ°É.
¼ì²âÄãµÄϵͳÊÇ·ñ°²×°ÒÔÉϵİü£º
´ò¿ªÖնˣº
²éѯÊÇ·ñ°²×°php rpm -q php »òÕß
²éѯÓëphpÏà¹ØÁªµÄ°ü rpm -qa php
ÈôÓлáÏÔʾ£ºversion x.x.x µÈµÈ
ÎÒµÄϵͳÊÇ:redflag5.0 for dell oem
´ø*ºÅµÄΪϵͳ×Ô´ø£¬ÈôÄãµÄϵͳδ°²×°£¬ÏÈ°²×°°É£¡
µÚËIJ½£º°²×°MYSQL ·þÎñÆ÷
Ö±½Ó°²×°rpm°ü
rpm -ivh somesoft.rpm
Æô¶¯·þÎñÆ÷£º
ÖÕ¶ËÊäÈ룺 /etc/rc.d/init.d/mysqld start
¹Ø±Õ·þÎñÆ÷£º
ÖÕ¶ËÊäÈ룺 /etc/rc.d/init.d/mysqld stop
µÇÈ룺mysql -u mysql
mysql -uusername -pyoupassword;
mysql>show databases;
×î³õÖ»ÓÐÁ½¸ö£ºtest£¬information_schema£»
ÒÔrootÉí·ÝµÇÈëÔòÓÐËĸö¡£
ÔËÐÐÃüÁîbin/mysql -u root -p£¬´Ëʱ½«³öÏÖpassword:£¨ÒªÇóÊäÈëÃÜÂ룩£¬µ«Ä¬ÈÏÇé¿öÏÂrootÓû§Ã»ÓÐÃÜÂ룬ËùÒԻسµ¼´¿É¡£´Ëʱ½«½øÈëMySQL½çÃ棬µ±È»ÈÔȻֻÊǸöÃüÁîÐд°¿Ú¶øÒÔ¡£
ÔËÐÐÃüÁîuse test£¬½«½øÈëtestÊý¾Ý¿â
mysql>use test;
mysql> show tables
-> ;
Empty set (0.00 sec)
½¨Á¢Ò»¸öµØÖ·²¾Êý¾Ý¿â£º
m
Ïà¹ØÎĵµ£º
<?php
$filename
=
"
D:
\\
296.mid
"
;
$file
=
fopen
(
$filename
,
"
rb
"
)
;
$bin
=
fread
(
$file
,
2
)
;
//Ö»¶Á2×Ö½Ú
fclose
(
$file
)
;
$strInfo
= @
unpack
(
"
c2chars
" ......
get_class_methods() // ËùÓз½·¨
get_included_files()//·µ»Øµ±Ç°Ò³ËùÓмÓÔصÄÎļþ
get_declared_classes()// ·µ»Øµ±Ç°Ò³ËùÓÐclass
get_declared_interfaces()// ·µ»ØËùÓеĽӿÚ
get_defined_functions()// ·µ»ØËùÓеÄfunction &nb ......
<?php
/*
*PHP¹ÜÀíMYSQLµÄÊý¾Ý¿âÀà
ʹÓ÷½·¨£º$dbConn = new DbConn([$Êý¾Ý¿âÃû(¿ÉÑ¡)]);
ÔÊÐí·µ»ØµÄ·½·¨£º
Execute($sql) //Ö´ÐÐSQLÓï¾ä£¬Ã»Óзµ»ØÖµ;
getRs($sql) //·µ»Ø²éѯÓï¾äµÄ¼Ç¼£¬Ò»Ìõ;
getRsArray($sql) //·µ» ......
ʵÀýÓ¦Óãº
1<?
2require_once('../libs/classes/page.class.php');
3$page=new page(array('total'=>1000,'perpage'=>20));
4echo 'mode:1<br>'.$page->show();
5echo '<hr>mode:2<br>'.$page->show(2);
6echo '<hr>mode:3<br>'.$page->show(3);
7echo '&l ......