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

linuxÏÂapache+php°²×°³£¼ûÎÊÌâ


configure: error: Unable to find libgd.(a|so)
Èç¹ûʹÓõÄÊÇubuntu»òdebian¾ÍºÜ¼òµ¥ÁË£¬Ö±½Ósudo apt-get install apache2
libapache2-mod-php5 php5 php5-gd ¾Í»ù±¾Éϸ㶨£¬µ«ÊÇÓÃÔ´´úÂë°²×°»¹ÊǺÜÂé·³¡«
wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo ./configure --prefix=/usr/local/gd2
sudo make
sudo make install
ÔÙphp:~/:./configure  …… --with-gd=/usr/local/gd2  ……
ÒÔÏÂÊÇ×ªÔØµÄ,¶øÇÒ¶¼ÊÇ»ùÓÚyum install»òÕßapt-getµÄ¡£
1) Configure: error: xml2-config not found. Please check your libxml2
installation.
Solutions :
Quote:
#yum install
libxml2
libxml2-devel
(For Redhat & Fedora)
# aptitude install
lib
xml2
-dev      (For ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s <evp.h>
Solutions :
Quote:
#yum install
openssl
openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
Solutions :
Quote:
# yum install
bzip2
bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Solutions :
Quote:
# yum install
curl
curl-devel   (For Redhat & Fedora)

# install libcurl4-gnutls-dev    (For
Ubuntu)

5) Configure: error: libjpeg.(also) not found.
Solutions :
Quote:
# yum install
libjpeg
libjpeg-devel
6) Configure: error: libpng.(also) not found.
Solutions :
Quote:
# yum install
libpng
libpng-devel
7) Configure: error: freetype.h not found.
Solutions :
Quote:
#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h
Solutions :
Quote:
# yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Solutions :
Quote:
# yum install mysql-devel           


Ïà¹ØÎĵµ£º

PHPÓû§µÇ¼ע²áÄ£¿éʵÏÖ


PHPÓû§µÇ¼ģ¿éʵÏÖ
ÏîÄ¿°üº¬µÄ¹¦Äܽű¾£º
login.php//怬
reg.php//×¢²áÓû§
user_add.php//×¢²áУÑé½Å±¾
user_login_check.php//µÇ¼УÑé½Å±¾
image.php//ÑéÖ¤ÂëͼƬÉú³É½Å±¾
Á÷³Ì£º
Éè¼ÆÊý¾Ý¿â£º
°üº¬Óû§uid£¬Óû§Ãû£¬ÃÜÂ룬êdzƣ¬ÐÔ±ð£¬ÓÊÏ䣬ע²áʱ¼ä
sqlÓï¾äÈçÏÂ
create table users (uid bigint(20) ......

php ¶ÔÎļþ²Ù×÷

PHP´´½¨Îļþ£¨¼Ð£©ÒÔ¼°Ä¿Â¼²Ù×÷
 Ò»¡¢Ä¿Â¼²Ù×÷
   
      Ê×ÏÈÊÇ´ÓĿ¼¶ÁÈ¡µÄº¯Êý,opendir(),readdir(),closedir(),ʹÓõÄʱºòÊÇÏÈ´ò¿ªÎļþ¾ä±ú,¶øºóµü´úÁгö:
<?php
$base_dir="filelist/";
$fso=opendir($base_dir);
echo  $base_dir."<hr/>";
whil ......

PHPÉú³ÉËæ»ú×Ö·û´®µÄ·½·¨

Code:
<?php
function genRandomString($len)
{
$chars = array(
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", 
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", 
"w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", 
"H", "I", "J", "K", "L", "M", "N", "O", ......

phpǶÈëhtml

<?php
function outputMyName($fname) {
   echo "ÎÒµÄÃû×ֽР";
    echo "ÖÜ ".$fname."<br />";
}
 ?>
<html>
<body>
<?php
outputMyName("ʤ³¬");
outputMyName("Óîºã");
outputMyName("ÓîÃË");
?>
</body>
</html>
½á¹ûÈçÏ£ ......

linux×îʵÓõÄÃüÁî

1¡¢²é¿´½ø³Ì·þÎñÊý£¬ÀýÈ磺ps -u ats3|grep Commer|wc -l
ÆäÖГ-u”£¬ºóÃæ¸úÓû§£¬“|grep Commer|”ÊÇ¿´ats3Óû§ÏµÄCommer·þÎñÊý£¬“|wc -l”¿´ÐÐÊý£»
2¡¢°´Ê±¼äÅÅÐò²é¿´Îļþ£ºls -lrt£»
3¡¢viÖеÄÃüÁ
:set nu ÏÔʾÐÐÊý
°´x¼ü£ºÉ¾³ý¹â±ê´¦µÄÒ»¸ö×Ö·û
°´dd¼ü£ºÉ¾³ý¹â±êËùÔÚµÄÐÐ
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ