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
Ïà¹ØÎĵµ£º
·½·¨Ò»£º½¨Ò»¸öÆ´Òô±í t_cosler £¬´æ·Åÿ¸ö×Öĸ¿ªÍ·µÄµÚÒ»¸öºº×ֵıàºÅºÍ×îºóÒ»¸öºº×ֵıàºÅ¡£
BatchFile code+------+--------+-------+
| f_PY | cBegin | cEnd |
+------+--------+-------+
| A | 45217 | 45252 |
| B | 45253 | 45760 |
.....
| Z | 54481 | 55289 |
+------+--------+-------+
......
ÓÉÓÚijÖÖÐèÒª£¬ÕâÒ»¶ÎÐèҪѧϰPHP£¬ËùÒÔÔÚÕâÀà¼Ç¼һÏÂ×Ô¼ºµÄһЩÐĵúÍ×Ô¼ºÔÚѧϰÖÐÓöµ½µÄһЩÎÊÌâ¡££¨¸üÐÂÖÐ...£©
1.LinuxºÍwindowsÏ¿ª·¢PHP
ÔÚÕâÁ½ÖÖϵͳÏ¿ª·¢PHP¶¼ÐèÒª´î½¨»·¾³£¬ÔÚLinuxÏÂÒ»°æÓÃapache×÷Ϊweb·þÎñÆ÷£¬¶øÇÒÏà¶ÔÀ´Ëµ»·¾³µÄ´î½¨ºÜ¼òµ¥£»¶øÔÚwindowsÏÂÒªÊÇ¿ª·¢PHP½¨ÒéÓÃwindows server 2003£¬windows x ......
<?php
/*
*PHP¹ÜÀíMYSQLµÄÊý¾Ý¿âÀà
ʹÓ÷½·¨£º$dbConn = new DbConn([$Êý¾Ý¿âÃû(¿ÉÑ¡)]);
ÔÊÐí·µ»ØµÄ·½·¨£º
Execute($sql) //Ö´ÐÐSQLÓï¾ä£¬Ã»Óзµ»ØÖµ;
getRs($sql) //·µ»Ø²éѯÓï¾äµÄ¼Ç¼£¬Ò»Ìõ;
getRsArray($sql) //·µ» ......
¿ÉÒÔͨ¹ýÐòÁл°Ò»¸öÊý×飬Ȼºó·Åµ½cookieÖÐ
´ÓcookieÖеõ½Öµ£¬È»ºóÔÚ·´ÐòÁл¯£¬×ª»»ÎªÊý×é¡£
$cur_goods_array = unserialize(stripslashes($_COOKIE['shop_cart_info']));
¡¡
¡¡setcookie("shop_cart_info",serialize($cur_goods_array)); ......
ÖйúµÚÒ»µµÂÌÉ«PHP×ÊÔ´·ÖÏíÃÅ»§,רעÓÚ´´ÐºÍÔ´´ÀàÔ´Âëphp×ÊÔ´£¬Ô´´ÊÓƵphp×ÊÔ´£¬Ô´´µäÐÍÄ£¿éphp×ÊÔ´£¬Ô´´php¿ªÔ´×ÊÔ´£¬Ô´´php½Ì³Ì×ÊÔ´£¬Ô´´Íøվģ°å×ÊÔ´ ¡£ÍøÕ¾µØÖ· http://www.phpzy.com/
ÂÌÉ«php×ÊÔ´ ......