PHPÊý¾Ý¿âÁ´½Ó´úÂë
<?php
$mydbhost ="localhost"; //ÅäÖÃÖ÷»ú
$mydbuser ="root"; //Êý¾Ý¿âÓû§
$mydbpw ="8312836"; //Êý¾Ý¿âÃÜÂë
$mydbname ="jingyun"; //Êý¾Ý¿âÃû
//$mydbcharset ="GBK";
$conn=mysql_connect($mydbhost,$mydbuser,$mydbpw) or die ("·þÎñÆ÷Á¬½Ó´íÎó".mysql_error());
mysql_select_db($mydbname,$conn);
mysql_query("SET NAMES 'utf8'");
date_default_timezone_set ('PRC');
$addtime=date("y-m-d H:i:s");
//¶¨Òå³£Á¿
define('ALL_PS',"nkfwe24tot");//¶þ´Î¼ÓÃÜ£¬ÃÜÂë×Ö·û
//echo md5("admin".ALL_PS);
//ÐÅÏ¢Ìáʾº¯Êý
function showmsg($text,$urlstr="")
{
if($urlstr){
echo '<Script>alert("'.$text.'");window.location.href="'.$urlstr.'";</Script>';
exit;
}
else {
echo "<Script>alert('".$text."');history.go(-1);</Script>";
exit;
}
}
?>
Ïà¹ØÎĵµ£º
<?php
function outputMyName($fname) {
echo "ÎÒµÄÃû×ֽР";
echo "ÖÜ ".$fname."<br />";
}
?>
<html>
<body>
<?php
outputMyName("ʤ³¬");
outputMyName("Óîºã");
outputMyName("ÓîÃË");
?>
</body>
</html>
½á¹ûÈçÏ£ ......
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 . ......
ÏÖÔÚÓкܶàµÄrss¶©ÔÄ£¬ÎÒÃÇÖ±½Ó¿ÉÒÔ¶©Ôĵ½ÓÊÏä¡£¼ÈȻѧÁËPHP£¬ÄÇôÓÐûÓÐÒ»ÖÖ·½·¨¿ÉÒÔÖ±½Ó½«rssµÄÐÂÎÅÐÅÏ¢ÏÔʾÔÚ×Ô¼ºµÄÍøÒ³ÉÏÄØ£¿Óе쬱ØÐëµÄ£¬ÏÂÃæ¾ÍÊÇÕâ¸örss½Å±¾£º
<?php
//RSSÔ´µØÖ·ÁбíÊý×é
$rssfeed = array("http://blog.csdn.net/heavenopener/category/668064.aspx/rss");
for($i=0;$i<sizeof($rssfee ......
²©¿Í£ºWordPress
WordPressÊÇʹÓÃPHP¿ª·¢µÄÖøÃû²©¿Íƽ̨£¬Ãâ·Ñ¿ªÔ´£¬¹¦ÄÜÇ¿´ó£¬²»½ö½öÓÃÓÚ²©¿Í´î½¨£¬»¹¿ÉÒԹ㷺ӦÓÃÓÚ¸÷ÀàÍøÂçÐÅÏ¢·¢²¼Æ½Ì¨¡£
ÂÛ̳£ºphpBB
phpBBÊÇÒ»Öֹ㷺Á÷ÐеĿªÔ´ÂÛ̳Èí¼þ£¬¾ßÓÐÒ×ÓÚʹÓõĹÜÀíÃæ°åºÍÓѺõÄÓû§°²×°½çÃæ£¬¿ÉÒÔÇáËɵØÔÚÊý·ÖÖÓÄÚ½¨Á¢ÆðÒ»¸öÂÛ̳£¬¹¦ÄÜÉϾßÓкܸߵĿÉÅäÖÃÐÔ£¬Äܹ»ÍêÈ«¶¨Ö ......