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
Ïà¹ØÎĵµ£º
´ÓÕâ¸öͼÖУ¬¿ÉÒÔºÜÇå³þµÄ¿´µ½Ò»ÖÖÁªÏµ£º
¼ÙÉè $var ÊÇÈκÎtype¡£
µ± empty($var) Ϊ true ʱ£¬ (bool)($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
ͬÑù£¬
µ± is_null($var) Ϊ true ʱ£¬ isset($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
¼ÙÈç:
$i=$j+1;
ÕâÀïµÄis_null($j)Ϊtrue
¿É¼û£º
issetÓÃÓÚÅжÏ䶨ÒåµÄÇé¿ö¡£
Empty¿ÉÒÔÅжÏδ¶¨Ò ......
<?php
$host="192.168.1.214";
$post=21;
$username="zwc3g";
$password="zwc3ggg";
$ftp=ftp_connect($host,$post);
ftp_login($ftp,$username,$password);
displayTheFolder($ftp,"/zhulu2");
//´òÓ¡FTPÉϵĸÃĿ¼ÏµÄËùÓÐÎļþ¡£
fu ......
±¾ÆªÎÄÕÂÀ´Ô´ÓÚ ºÚ¿Í»ùµØ-È«Çò×î´óµÄÖÐÎĺڿÍÕ¾ ÔÎÄÁ´½Ó£ºhttp://hackbase.com/tech/2009-08-04/54550_1.html
2007Äê11ÔÂ01ÈÕ ÐÇÆÚËÄ ÏÂÎç 03:48ÈÃÎÒÃÇÒÔÒ»¸ö¼òµ¥µÄÀý×Ó¿ªÊ¼---Ò»¸ö½ÓÊÕÊäÈë×Ö·û´®,´¦Àí²¢·µ»ØÕâ¸ö×Ö·û´®µ½¿Í»§¶ËµÄTCP·þÎñ.ÏÂÃæÊÇÏàÓ¦µÄ´úÂë:PHP ´úÂë: ------------------------------------------------ ......