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

php list·½·¨µÄÃîÓÃ

Ò»¸ö¼òµ¥µÄÀý×Ó¶ÁÈ¡CSVÎļþ£º
<?php
$handle=fopen("test.csv","r");
echo "<table border=2>";
//ÅäºÏwhileÑ­»·¶ÁÈ¡Îļþ
while($data=fgetcsv($handle,1024))
{
list($user,$pwd,$partment,$title)=$data;
echo "<tr>
<td>$user</td>
<td>$pwd</td>
<td>$partment</td>
<td>$title</td></tr>";
}
echo "</table>";
fclose($handle);
?>


Ïà¹ØÎĵµ£º

PHPÉú³ÉEXCEL£¬¿ÉÇø·ÖÊýÖµÓë×Ö·û´®

ÕâÊǸöÔÚ±ðÈ˵Ļù´¡ÉÏ×öÐ޸ĵĴúÂ룬Ìí¼ÓÁË Åжϵ¥Ôª¸ñÖµÊÇ·ñΪÊýÖµ£¬ÊǵĻ°£¬½«¸Ãµ¥Ôª¸ñµÄÀàÐÍת³É Number£¬±ÜÃâÉú²úµÄEXCELÖÐû·¨½øÐÐÊýÖµµÄ¼Ó¼õ¡£¡£¡£
<?php
/**
* Simple excel generating from PHP5
*
* This is one of my utility-classes.
*
* The MIT License
*
* Copyright (c) 2007 Oliver Sc ......

2009Äê9ÔÂÓïÑÔÅÅÐаñ£ºPHP³¬Ô½C++


TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»Óо­ÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ» ......

phpÖÐfopen() º¯ÊýÓôò¿ªÎļþģʽ˵Ã÷

fopen() º¯ÊýÓÃÓÚÔÚ PHP Öдò¿ªÎļþ¡£
´Ëº¯ÊýµÄµÚÒ»¸ö²ÎÊýº¬ÓÐÒª´ò¿ªµÄÎļþµÄÃû³Æ£¬µÚ¶þ¸ö²ÎÊý¹æ¶¨ÁËʹÓÃÄÄÖÖģʽÀ´´ò¿ªÎļþ£º
<?php
$file=fopen("welcome.txt","r");
?>
Îļþ¿ÉÄÜͨ¹ýÏÂÁÐģʽÀ´´ò¿ª£º
r   : Ö»¶Á¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·£¬Èç¹ûÎļþ²»»á±¨´í¡£
r+ : ¶Á/д¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·,Èç ......

phpÊý¾Ýµ¼Èëµ¼³öÖ®excel(csvÎļþ)

ÒýÓõØÖ·£º
http://blog.csdn.net/conan_s/archive/2008/01/04/2025495.aspx
ÓÐʱд³ÌÐòʱºǫ́ҪÇó°Ñ´óÁ¿Êý¾Ýµ¼ÈëÊý¾Ý¿âÖУ¬±ÈÈ翼ÊԳɼ¨¡¢µç»°²¾µÈÒ»°ã¶¼ÊÇ´æ·ÅÔÚexcelÖеÄÊý¾Ý£¬ÕâʱÎÒÃÇ¿É°Ñexcelµ¼³ö³ÉcsvÎļþ£¬È»ºóͨ¹ýÒÔϳÌÐò¼´¿ÉÅúÁ¿µ¼ÈëÊý¾Ýµ½Êý¾Ý¿âÖÐ
ÉÏ´«cvs²¢µ¼Èëµ½Êý¾Ý¿âÖУ¬²âÊԳɹ¦£¨²¿·Ö´úÂë²»¹æ·¶£¬ÈçPH ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ