linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç
linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç
php-5.1.2.tar.gz
°²×°phpËùÐèµÄÈí¼þ°ü
£¨ÆäÖÐlibxml2ÊÇ°²×°php5±ØÐëµÄ£¬ÎªÊ²Ã´»¹ÐèÒªperl´ô»á˵Ã÷ÔÒò¡££©
libxml2-2.6.19.tar.gz
libxslt-1.1.15.tar.gz
ActivePerl-5.8.8.817-i686-linux-2.2.17-gcc-257965.rpm
curl-7.15.0.tar.gz
GD¿âËùÐèÒªÈí¼þ°ü
£¨ÓÐÈË˵PHPÔ´Âë°üÀï×Ô´øÁËGD2.0.28ºÍzlib£¬
Ö»Òª°²×°GDµÄÈý¸öÖ§³Ö°ü£ºjpg,pngºÍfreetype£¬µ«ÊÇÎÒÃÇ»¹ÊÇÏÂÔØ£©
gd-2.0.33.tar.gz
freetype-2.1.10.tar.gz
jpegsrc.v6b.tar.gz
libpng-1.2.8.tar.gz
zlib-1.2.3.tar.gz
//°²×°jpeg
[root@as4 local]# mkdir -p /home/servers/jpeg6
[root@as4 local]# mkdir -p /home/servers/jpeg6/bin
[root@as4 local]# mkdir -p /home/servers/jpeg6/lib
[root@as4 local]# mkdir -p /home/servers/jpeg6/include
[root@as4 local]# mkdir -p /home/servers/jpeg6/man
[root@as4 local]# mkdir -p /home/servers/jpeg6/man1
[root@as4 local]# mkdir -p /home/servers/jpeg6/man/man1
# tar -zvxf jpegsrc.v6b.tar.gz
# cd jpeg-6b
# ./configure --prefix=/home/servers/jpeg6/ --enable-shared --enable-static
# make; make install
b.°²×°libpng
# cd ..
# tar -zvxf libpng-1.2.8.tar.gz
# cd libpng-1.2.8
# cp scripts/makefile.std makefile
# make; make install
c.°²×° freetype
# cd ..
# tar -zvxf freetype-2.1.10.tar.gz
# cd freetype-2.1.10
# mkdir -p /home/servers/freetype
# ./configure --prefix=/home/servers/freetype
# make;make install
d.:°²×°zlib
# cd ..
#tar -zxvf zlib-1.2.3.tar.gz
#cd zlib.1.2.3
# ./configure
# make;make install
e.°²×°GD¿â
# cd ..
# tar -zvxf gd-2.0.33.tar.gz
# mkdir -p /home/servers/gd2
# cd gd-2.0.33
# ./configure --prefix=/home/servers/gd2 --with-jpeg=/home/servers/jpeg6/ --with-png=/usr/local/lib/ --with-zlib=/usr/local/lib/ --with-freetype=/home/servers/freetype/
# make; make install
e.°²×°Curl¿â
# cd ..
# tar -zxvf curl-7.15.0.tar.gz
# mkdir -p /home/servers/curl
# ./configure --prefix=/home/servers/curl
# make; make install
Î壺°²×°php5£¬php5±ØÐëÓÐlibxml2Ö§³Ö£¡
a.°²×°libxml2
# cd ..
# tar
Ïà¹ØÎĵµ£º
£Ö£É°üº¬²åÈëģʽ¡¢ÃüÁîģʽ¡¢¿ÉÊÓģʽ
²åÈëģʽÓë¼Çʱ¾ÀàËƵ«¾ßÓÐÎļþʶ±ð¹¦Äܿɸù¾ÝÎļþµÄºó׺ÃûʹÓÃÏàÓ¦µÄÅÅ°æģʽ¡£
ÃüÁîģʽ¿É½øÐÐ×Ö·û´®µÄ²éÕÒ¡¢Ìæ»»µÈ²Ù×÷£¬¿ì½Ý¼ü±È½Ï¼òµ¥ºÃ¼Ç£¬¿É×Ô¶¨Òå¿ì½Ý¼ü£¬¿É½«Ò»Ð©¸´ÔÓµÄÃüÁÒåΪһ¸ö¼üÅ̲Ù×÷£¬¾ßÌå°´¸öÈËÏ°¹ß£¬ÐèÒªÊì¶Á.vim½Å±¾
¿ÉÊÓģʽ¿É½øÐÐÎı¾¿éµÄ²Ù×÷£¬Èç¼ôÇС¢ ......
×î½ü×°Á˼¸´Îlinux£¬Ñ§Á˺ܶ࣬°Ñ¹ý³ÌдÏÂÀ´ÁË£¬Ï£Íû¸ø¿´µÄÈË°ïÖú£¬Ò²¶à¸øЩ½¨Òé¡£
Ò»¡¢Ñ¡Ôñ×îС»¯°²×°£¨Ê²Ã´Ò²²»Ñ¡£¬µ«ÊÇ»¹ÊÇÑ¡ÁËvim£©
¶þ¡¢Ê¹ÓùâÅÌ×÷ΪԴ°²×°£¨ÏêÇé²Î¼û/etc/yum.repos.d/CentOS-Media.repo£©ËùÓÃÌ×¼þ£¨Ê¹ÓÃyumµÄÇ¿´ó¹¦ÄÜ£©
####²¢²»ÊǼòµ¥µÄÓÃyumÃüÁÐèÒªÔÚyumºóÃæ¼ÓһЩ¶«Î÷£¬/etc/yum.repo ......
·Ö±ðÏÂÔØÁËphp5.2.10ºÍ5.3.0°æ±¾µÄÔ´Â룬²éÕÒµ½ÀïÃæcall_user_function(ÔÚext/standard/basic_functions.c)µÄ·½·¨¡£
ÔÚ5.2.10°æ±¾Àcall_user_functionÓõÄÊDZê×¼µÄphp º¯ÊýµÄд·¨£¬ÓÃzvalÀàÐÍÀ´´æ´¢½ÓÊյIJÎÊý£¬µ÷ÓÃcall_user_function_exÀ´Ö´ÐÐÓû§µÄ·½·¨¡£Èç¹ûµ÷Óò»³É¹¦Ôò·ÖÎöÊDz»ÊǽÓÊÕµ½µÄ²ÎÊýÀïÓÐʲô´íÎó¡£
µ«Ô ......
ÀýÈ磺
A.php
<?php
$usernane
?>
Òª½«A.phpÖصÄ$usernaneÖµ´«¸øÁíÍâÒ»¸öÒ³Ã棨B.php£©ÖеÄʵÏÖ·½·¨£º
<meta http-equiv='refresh' content='0;url='B.php£¿user=$username'>
½ÓÊÕ
echo $_GET['user'];
ÕâÑù£¬¾Í¿ÉÒÔÔÚB.phpÖзÃÎÊ$use ......
´ÓÕâ¸öͼÖУ¬¿ÉÒÔºÜÇå³þµÄ¿´µ½Ò»ÖÖÁªÏµ£º
¼ÙÉè $var ÊÇÈκÎtype¡£
µ± empty($var) Ϊ true ʱ£¬ (bool)($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
ͬÑù£¬
µ± is_null($var) Ϊ true ʱ£¬ isset($var) Ϊ false ¡£·´Ö®ÒàÈ»¡£
¼ÙÈç:
$i=$j+1;
ÕâÀïµÄis_null($j)Ϊtrue
¿É¼û£º
issetÓÃÓÚÅжÏ䶨ÒåµÄÇé¿ö¡£
Empty¿ÉÒÔÅжÏδ¶¨Ò ......