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

php ¶ÁÈ¡excelʱ¡£±àÂëת»»ÎÊÌâ

Çë½Ìexcel µÄ±àÂëÎÊÌâ
excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À­²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕýÈ·£¬Çë½Ì¸ßÊÖÖ¸½Ì
<%php
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('UTF-8');
$data->read("case.xsl");
error_reporting(E_ALL ^ E_NOTICE);
$x=0;
for($a=0;$a <3;$a++){
for ($i = 1; $i <= $data->sheets[$a]['numRows']; $i++) {  //È¡µÃexcelµÄÊý¾Ýµ½Ò»¸öÊý×érealdata
for ($j = 1; $j <= $data->sheets[$a]['numCols']; $j++) {
$item=$data->sheets[$a]['cells'],$i,$j;
echo $item." <br>";
$realdata[$x][$j-1]=$item;
}
$x++;
}
}
%>
{{


Ïà¹ØÎÊ´ð£º

PHPÀ©Õ¹CʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

php±àдִÐÐlinux shellÃüÁîµÄ´úÂë

ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾­¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......

linuxÏÂphp¿ª·¢ÎÊÌ⣬¼±¼±¼±£¡£¡£¡

ÏÖÔÚÎÒÓÃubuntu×°ºÃÁËphp5+postgresql£¬ÏÔʾFatal error: Call to undefined function pg_connect() in /var/www
È¥google¿´ÁËÒ»ÏÂ˵ÊÇûÓÐphpÅäÖÃÈ¥µôextension=php_pgsql.so×¢ÊӾͿÉÒÔ£¬¿ÉÎÒvim/php.ini£¬Ã»ext ......

phpÖÐfile_get_contentsÎÊÌâ

$a = $_FILES['userfile']['name'] ;

$test = $a;

$p = split('/',$test);

$p[count($p)-1];

$content = file_get_contents("$p");

$con ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ