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

PHPͼ±íÖÆ×÷¹¤¾ß¼¯

ת×Ô£ºhttp://nedvedheqing.javaeye.com/blog/383506
1. PHPÀ©Õ¹
JpGraph£ºhttp://www.aditus.nu/jpgraph/
ChartDirector£ºhttp://www.advsofteng.com/
2. JavaScript
Flot (http://code.google.com/p/flot/
) - Flot Ϊ jQuery ÌṩµÄjavascript´úÂë¿â. ÈÝÒ×ʹÓã¬ÓÐÌØÉ«µÄͼ±í£¬Ìṩ½»»¥¹¦ÄÜ(Äܹ»·Å´óËõСÊý¾ÝÇøÓòµÈ)¡£
Flotr (http://solutoire.com/flotr/
) - Flotr ÊÇPrototype 1.6.0.2¿ò¼ÜµÄjavascript²å¼þ¿â¡£ Flotr°ïÖúÄãÔÚä¯ÀÀÆ÷Öд´½¨Í¼±í£¬Ö§³ÖÊó±êʼþÏìÓ¦£¬·Å´óËõС£¬CSSÀàÐÍÖ§³ÖµÈ¡£
Emprise JavaScript Charts (http://www.ejschart.com/
) - Emprise ÊÇÒ»¸ö100% ´¿ JavaScript ͼ±í½â¾ö·½°¸£¬²¢²»ÐèÒªÈκΠJavaScript ¿ò¼Ü.
PlotKit (http://www.liquidx.net/plotkit/
) - PlotKit ÊÇÒ»¸ö ͼ±íºÍͼÏñµÄJavascript ¿â. PlotKit ºÍ MochiKit javascript ¿âÒ»Æð¹¤×÷£¬Ö§³ÖHTML Canvas ºÍ Adobe SVG ÏÔʾ ÒÔ¼°±¾µØä¯ÀÀÆ÷Ö§³Ö¡£ÓÈÆäÎĵµ·Ç³£È«¡£
3. Flash
Open Flash Chart (http://teethgrinder.co.uk/open-flash-chart/
) - Open Flash Chart ÊÇÒ»¸ö Flash ͼ±í×é¼þ£¬ºÜÈÝÒ×°²×°£¬ÌṩÒÔÏÂÓïÑÔµÄAPI£º PHP, Perl, Python, Java, Ruby on Rails, and .Net À´¿ØÖÆÍ¼±í¡£
AmCharts (http://www.amcharts.com/
) - AmCharts ÊÇÒ»¸ö¶¯»­½»»¥Flashͼ±í¡£Ö§³Ö£º Pie Charts, Line Charts, Scatter/Bubble Charts, Bar/Column Charts, ÉõÖÁ¹ÉƱͼ±í¡£
PHP/SWF Charts (http://www.maani.us/charts/index.php
)
- PHP/SWF ÊÇÒ»¸ö¼òµ¥Ö§³Öwebͼ±íµÄÇ¿´ó¹¤¾ß£¬ÄãÄÜʹÓà PHP À´ÊÕ¼¯Êý¾Ý£¬²¢·¢Ë͸øflash£¬Ö§³ÖºÜ¶àͼ±íÀàÐÍ£º Line,
Column, Stacked column, Floating column, 3D column, Stacked 3D column,
Parallel 3D column, Pie, 3D Pie, Bar, Stacked bar, Floating bar, Area,
Stacked area, Candlestick, Scatter, Polar, Mixed.  
FusionCharts (http://www.fusioncharts.com/Free/
)
- FusionCharts ÊÇÒ»¸ö¿çä¯ÀÀÆ÷ºÍ¿çƽ̨µÄflashͼ±í×é¼þ£¬Äܹ»±» ASP.NET, ASP, PHP, JSP,
ColdFusion, Ruby on Rails, ¼òµ¥ HTML Ò³Ãæ ÉõÖÁPPTµ÷ÓÃ. ¼¸ºõËùÓÐÄãÖªµÀµÄÓïÑÔËü¶¼Ö§³Ö¡£
4. ÆäËû
Visifire (http://www.visifire.com/
)
- Visifire ÊÇÓà Silverlight ×öµÄ£¬ÊÇÒ»¸ö¿ªÔ´¿ÉÊÓ»¯Êý¾Ý×é¼þ£¬Ê¹ÓÃVisifireÄãÄÜ´´½¨¶¯»­ Silverlight
ͼ±í£¬Ö§³Ö ASP, ASP.Net, PHP, JSP, ColdFusion, Ruby on Rails »òÕ


Ïà¹ØÎĵµ£º

php Mod rewrite test

In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on ......

CentOSͨ¹ýyumÉý¼¶phpµ½5.2.9°æ±¾µÄ·½·¨

CentOSµÄphp°æ±¾Ä¬ÈÏΪ5.1.6£¬È»ºóÔÚ5.2.9°æ±¾Ö®Ç°µÄµÄphp¶¼´æÔÚÒ»¸ö©¶´£¬µ«ÊÇÄ¿Ç°ÍøÉÏºÜ¶àµØ·½¶¼ÎÞ·¨Ê¹ÓÃyum update php*Éý¼¶µ½5.2.9£¬±È½Ï³£¼ûµÄÊÇÉý¼¶µ½5.2.6°æ±¾µÄ£¬¾­¹ýËÑË÷¹úÍâ×ÊÁÏ£¬ÏÖÔÚÖÕÓÚÕÒµ½Ò»ÖÖÉý¼¶CentOSµÄphpµ½5.2.9µÄ·½·¨¡£
ÔËÐÐÏÂÃæÃüÁ
# wget http://download.fedora.redhat.com/pub/epel/5/i386/ep ......

PHP ÕýÔò±í´ïʽ²éÕÒ×Ö·û´®

<?php
set_time_limit(0);
$url='http://item.taobao.com/auction/item_detail.htm?xid=0db2&item_num_id=4512430274&cm_cat=50000671&pm2=1';
$ch = curl_init();
$timeout = 10;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CU ......

phpÁ¬½Ómysql

header("Content-Type:text/html;charset=utf8");   ·Åµ½PHP¿ªÍ·´¦
$link=mysql_connect("localhost","root","110110");//Á´½Ó
mysql_select_db("blog",$link);//Ñ¡ÔñÊý¾Ý¿â
mysql_query("SET character_set_results=gbk", $link);//×Ö·û±àÂë ......

php»ñÈ¡¿Í»§¶ËIPµØÖ·µÄ¼¸ÖÖ·½·¨

PHP Code one: //php»ñÈ¡ipµÄËã·¨
$iipp=$_SERVER["REMOTE_ADDR"];
echo $iipp; PHP Code two: //php»ñÈ¡ipµÄËã·¨
$user_IP = ($_SERVER["HTTP_VIA"]) ? $_SERVER["HTTP_X_FORWARDED_FOR"] : $_SERVER["REMOTE_ADDR"];
$user_IP = ($user_IP) ? $user_IP : $_SERVER["REMOTE_ADDR"];
echo $ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ