Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux Enterprise5 ÏÂ php°²×°

Ç°Ì᣺ Apache ºÍ MysqlÒѾ­°²×°Íê±Ï¡£
php °æ±¾£ºphp-5.2.6.tar.gz
ÏÂÔصØÖ·£º
 ZendOptimiter-3.3.3-linux-glibc23-i386.tar.gz
ÏÂÔصØÖ·£º
1. Ê×ÏÈ°²×°  GD¿âÈí¼þ
libxml2-2.7.2.tar.gz
ÏÂÔصØÖ·£º
#tar -zxvf libxml2-2.7.2.tar.gz
#cd libxml2-2.7.2
#mkdir /usr/local/modules
#mkdir /usr/local/modules/libxml
#./configure --prefix=/usr/local/modules/libxml
#make clean
#make
#make install
2. °²×°PHP
#tar -zxvf php-5.2.6.tar.gz
#cd php-5.2.6
#mkdir /usr/local/php5
#./configure
--prefix=/usr/local/php5
--with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql
--with-xml=/usr/local/modules/libxml
--with-zlib=/usr/local/modules/zlib            // Ôݲ»ÓôËÏî ÓõÄʱºòÔÙÏÂÔØÏàÓ¦Èí¼þ
--with-jpeg-dir=/usr/local/modules/jpeg   // Ôݲ»ÓôËÏî ÓõÄʱºòÔÙÏÂÔØÏàÓ¦Èí¼þ
--with-freetype-dir=/usr/local/modules/freetype  // Ôݲ»ÓôËÏî ÓõÄʱºòÔÙÏÂÔØÏàÓ¦Èí¼þ
--with-curl-dir=/usr/local/modules/curl  // Ôݲ»ÓôËÏî ÓõÄʱºòÔÙÏÂÔØÏàÓ¦Èí¼þ
--with-gd-dir=/usr/local/modules/gd  // Ôݲ»ÓôËÏî ÓõÄʱºòÔÙÏÂÔØÏàÓ¦Èí¼þ
#make clean
#make
#make install
#cp   php.ini-dist /usr/local/php5/etc/php.ini
Ìí¼ÓPHPµ½ApacheÖÐ
#vi /usr/local/apahce2/conf/httpd.conf
(1)ÔÚhttpd.confÎļþÏàÓ¦µÄµØ·½Ìí¼ÓÏÂÃ漸ÐÐ(Èç¹ûÔÚ°²×°php5ʱ£¬ÓеÄÅäÖÿÉÒÔÒѾ­¼ÓÉÏÁË£¬¾Í²»ÐèÒªÔÙÖØÐÂÌí¼ÓÁË)
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
ÔÚDirectoryIndex index.html index.html.var ºóÃæÌí¼Óindex.php
3. °²×°Zend
#tar -zxvf zendoptimizer-3.3.3-linux-glibc23-i386.tar.gz
#cd zendoptimizer-3.3.3-linux-glibc23-1.386
#./install.sh
°²×°¹ý³ÌÖУ¬ÐèÒªÊäÈëphp.iniµÄλÖ㬺ÍÈ·¶¨ApacheµÄλÖá£
°²×°¶¼½áÊøÁË£¬×îºóÀ´²âÊÔ¡£
ÔÚ/usr/local/apache2/htdocs½¨Á¢Ò»¸öphpinfo.php
#vi /usr/local/apache2/htdocs/phpinfo.php
<?php
phpinfo();
?>
ÔÚä¯ÀÀÆ÷Àï´ò¿ªlocalhost\phpinfo.phpÈç¹ûûÎÊÌâµÄ»°¾Í»áÏÔʾphpµÄÐÅÏ¢ÁË¡£
¿ÉÑ¡ ÆäËüGD¿âÈí¼þ
1¡¢°²×°libpng-1.2.32.tar.gz
#tar -zxvf libpng-1.


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

PHP»ù±¾Óï·¨


±ê×¼´úÂëÈçÏÂ:
<?php
...
?>
¶Ì±êǩģʽ(´ËģʽÐèÒªÐÞ¸ÄPHPÅäÖã¬ÈÃPHPÖ§³Ö¶Ì±êǩģʽ)£º
<?
...
?>
×¢ÊÍ£º
/* ...*/
//
#

ÆäËü£º
ÔÚphpÖÐÓÃ";"À´·Ö¸ôÓï¾ä¡£
Àý¾ä£º
<?php
echo "Hello World!"
?>
......

PHPµÄÊý¾ÝÀàÐͺÍÊý×éÏê½â


 PHPÊÇÈõÀàÐÍÓïÑÔ¡£
»ù±¾Êý¾ÝÀàÐÍ£ºinteger¡¢string¡¢boolean¡¢float
¸´ºÏÊý¾ÝÀàÐÍ£ºarray¡¢object
»ù±¾Êý¾ÝÀàÐ;Ͳ»ËµÁË£¬ÏÂÃæ¿´Ò»¸öÊý×éÏà¹ØµÄһЩÀý×Ó¡£
$test1=array(1,2,3,4);//¶¨ÒåÁËÒ»¸ö°üº¬4¸öÊýµÄÊý×é
$test1=array("new1"=>1,"new2"=>2);//Á½¸ö±äÁ¿µÄÊý×é,array['new1']=1,array['new2']=2
¶ ......

linuxÏÂÊý¾Ý¿â°²×°Ïêϸ½éÉÜ

Ò»¡¢²é¿´ÒªÇóµÄ×°Åä°ü£¨ºÍRHELËÄÓÐЩС²î±ð£©
rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make ksh sysstat libaio openmotif22 libXp
rpm -ivh compat-db
rpm -ivh kernel-headers
rpm -ivh glibc-headers
rpm -ivh glibc-devel
rpm -ivh libgomp
rpm -i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ