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

PHP³õѧÕßѧϰʵÀý

.$dbhost = 'localhost';  
$dbuser = 'root'; //ÄãµÄmysqlÓû§Ãû  
$dbpass = '123456'; //ÄãµÄmysqlÃÜÂë  
$dbname = 'data'; //ÄãµÄmysql¿âÃû  
//Á¬½Ó±¾µØÊý¾Ý¿â
$GLOBALS["conn"] = mysql_connect($dbhost,$dbuser,$dbpass);  
//´ò¿ªÊý¾Ý¿â
mysql_select_db($dbname,$GLOBALS["conn"]);
?>
2.php¶ÁÈ¡Êý¾Ý¿âÖÐ,ijһ×Ö¶ÎÖµ
<?php
//¶ÁÈ¡Ò»ÁÐÊý¾Ý
$sql="select * from ec_admin";
$result = mysql_query($sql,$GLOBALS["conn"]);
printf("̞: %s<br>\n", mysql_result($result,3,"UserName"));
printf("ÃÜÂë: %s<br>\n", mysql_result($result,3,"UserPass"));
?>


Ïà¹ØÎĵµ£º

PHP³õѧÕß³£¼ûÎÊÌâ×ܽá


±¾ÎÄÁгöÁËËùÓгõѧÕß×î³£¼ûµÄPHPÎÊÌâ
¡¾1¡¿Ò³ÃæÖ®¼äÎÞ·¨´«µÝ±äÁ¿ get,post,sessionÔÚ×îеÄphp°æ±¾ÖÐ×Ô¶¯È«¾Ö±äÁ¿Êǹرյģ¬ËùÒÔÒª´ÓÉÏÒ»Ò³ÃæÈ¡µÃÌá½»¹ýÀ´µÃ±äÁ¿ÒªÊ¹ÓÃ$_GET['foo'],$_POST['foo'],$_SESSION['foo']À´µÃµ½
µ±È»Ò²¿ÉÒÔÐÞ¸Ä×Ô¶¯È«¾Ö±äÁ¿Îª¿ª(php.ini¸ÄΪregister_globals = On)£»¿¼Âǵ½¼æÈÝÐÔ£¬»¹ÊÇÇ¿ÆÈ ......

PHP±à³Ìˮƽ·Ö¼¶(ת)

˵¾äʵ»°,дÕâ¸öÕæ¹»ÎÞÁĵÄ.±¾À´¿´ÁËijλ´óϺµÄÀàËÆÎÄÕÂ,¸¹·ÌÁ˼¸¾äÒ²¾ÍËãÁË.µ«ÊÇ×òÌìÍíÉÏÓиö¿Í»§ÄÃ×ÅÕâƪÎÄÕÂÎÊÎÒ: ÄãѾµÄ×Ô¼º×ö
Íâ°ü,ÄãË㼸¶ÎPHPer?Ëì¸Ð¾õÄÇƪÎÄÕ¶ÔijЩ°ëͨ²»Í¨Ö®È˵ÄÎóµ¼Ö®Éî.ÎÞ·¨,Ö»ÓÐд´ËÎÄÕ±íÃ÷ÎÒ¶ÔPHPerµÄˮƽÇø·ÖµÄÁ¢³¡.
¹ØÓÚ¾ßÌåÊÕÈëˮƽ,×ܵÄÀ´ËµÒòΪÕ⼸ÄêPHPÅàѵ°àµÄ¼Ó¶à,´óÁ¿PHPÐÂÊÖ¿ ......

ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼Æ˼ÏëÓë×î¼Ñʵ¼ù

ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼Æ˼ÏëÓë×î¼Ñʵ¼ù
·¢ÐÅÈË: wesley (ÐÄÖеÄÉ­ÁÖ), ÐÅÇø: Java
±ê  Ìâ: ÉîÒ¹ÏÐÁÄJavaÓëPHP ÒÔ¼°¼Ü¹¹Éè¼Æ˼ÏëÓë×î¼Ñʵ¼ù
·¢ÐÅÕ¾: ˮľÉçÇø (Thu Dec 24 01:55:04 2009), Õ¾ÄÚ
תÔØ×Ô±¾ÈËÐÂÀ˲©¿Í
http://blog.sina.com.cn/s/blog_53923f940100g7xx.html
£¨ÀÏÎâ×ÔÑÔ×ÔÓ
×î½üƵ·±ÌýË ......

php ¹¹Ô캯Êý²ÎÊý

ÔÚPHPÀÈç¹ûÄãûÓÐÊÖд¹¹Ô캯Êý£¬ÔòphpÔÚʵÀý»¯Õâ¸ö¶ÔÏóµÄʱºò£¬»á×Ô¶¯ÎªÀà³ÉÔ±ÒÔ¼°Àà·½·¨½øÐгõʼ»¯£¬·ÖÅäÄÚ´æµÈ¹¤×÷£¬µ«ÊÇÓÐЩʱºò²»ÄÜÂú×ãÎÒÃǵÄÒªÇ󣬱ÈÈçÎÒÃÇÒªÔÚ¶ÔÏóʵÀý»¯µÄʱºò´«µÝ²ÎÊý£¬ÄÇô¾ÍÐèÒªÊÖ¶¯±àд¹¹Ô캯ÊýÁË£¬ÊÖд¹¹Ô캯ÊýÓÐÁ½ÖÖд·¨£¬Ö»ÊDZíÏÖÐÎʽ²»Í¬£¬Æäʵ±¾ÖÊÒ»Ñù
class test
{
  &nb ......

php±àÂëת»»×ܽá

iconvº¯Êý¿âÄܹ»Íê³É¸÷ÖÖ×Ö·û¼¯¼äµÄת»»£¬ÊÇphp±à³ÌÖв»¿ÉȱÉٵĻù´¡º¯Êý¿â¡£
1¡¢ÏÂÔØlibiconvº¯Êý¿âhttp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz£»
2¡¢½âѹËõtar -zxvf libiconv-1.9.2.tar.gz;
3¡¢°²×°libiconv
££configure --prefix=/usr/local/iconv
#make
#make install
4¡¢ÖØбàÒëphp Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ