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

php ²»ÓÃCOM Éú³ÉexcelÎļþ


 
ÓÃphpÉú³ÉexcelÎļþ
<?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
?>
¡¡¡¡ÔÚphp»·¾³ÔËÐÐÉÏÃæµÄ´úÂ룬´ó¼Ò¾Í¿ÉÒÔ¿´µ½ä¯ÀÀÆ÷ѯÎÊÓû§ÊÇ·ñÏÂÔØexcelÎĵµ£¬µã»÷±£´æ£¬Ó²ÅÌÉϾͶàÁËÒ»¸öexcelµÄÎļþ£¬Ê¹ÓÃexcel´ò¿ª¾Í»á¿´µ½×îÖյĽá¹û£¬ÔõôÑù²»´í°É¡£
¡¡¡¡ÆäʵÔÚ×öÕæÕýµÄÓ¦ÓõÄʱºò£¬´ó¼Ò¿ÉÒÔ½«Êý¾Ý´ÓÊý¾Ý¿âÖÐÈ¡³ö£¬È»ºó°´ÕÕÿһÁÐÊý¾Ý½áÊøºó¼Ó/t,ÿһÐÐÊý¾Ý½áÊøºó¼Ó/nµÄ·½·¨echo³öÀ´£¬ÔÚphpµÄ¿ªÍ·ÓÃheader("Content-type:application/vnd.ms-excel");±íʾÊä³öµÄÊÇexcelÎļþ£¬ÓÃheader("Content-Disposition:filename=test.xls");±íʾÊä³öµÄÎļþÃûΪtext.xls¡£ÕâÑù¾ÍokÁË¡£
¡¡¡¡ÎÒÃǸü¿ÉÒÔÐÞ¸ÄheaderÈÃËûÊä³ö¸ü¶à¸ñʽµÄÎļþ£¬ÕâÑùphpÔÚ´¦Àí¸÷ÖÖÀàÐÍÎļþ·½Ãæ¾Í¸ü¼Ó·½±ãÁË£®


Ïà¹ØÎĵµ£º

phpÖÐʹÓÃsoapµÄ½¨Á¢¹²Ïí½Ó¿Ú

ÔÚÍøÕ¾ÐèÒª½¨Á¢¹²Ïí½Ó¿ÚµÄʱºò£¬¿ÉÒÔʹÓÃsoap¡£ ÏÂÃæ½éÉÜÏÂÔÚPHPÖÐÈçºÎʹÓÃSOAPµÄÍêÕû¹ý³Ì¡£
1¡¢È·ÈÏPHP»·¾³ÊÇ·ñÖ§³Ösoap,¼ì²éphpÅäÖÃÎļþ£¬°Ñextension=php_soap.dllǰµÄ·ÖºÅ(;)È¥µô(windows);ÈôÊÇ×Ô¼º±àÒëÔò±àÒëʱ±ØÐë¼ÓÉÏ --enable-soapÑ¡Ïî¡£
2¡¢½¨Á¢soap·þÎñ¶Ë¡£ ÏÂÃæÍ¨¹ýʵÀýÀ´ËµÃ÷ÈçºÎ½¨Á¢·þÎñ¶Ë¡£
<?php
cla ......

PHP mail Function With Attachments

Ô­ÌûµØÖ·£ºhttp://www.zedwood.com/article/126/php-mail-function-with-attachments
This code sends an html formatted email with attachments. This email sending script actually sends both a plaintext and an html body of the email, allowing the email client to choose which to display. The plaintext emai ......

php ͼƬÑéÖ¤Âë

ͼƬÑéÖ¤ÂëµÄÔ­ÀíÊÇ·ÀÖ¹¶ñÒâ×¢²á£¬ÊµÏÖ·½·¨
ÑéÖ¤Â룺<input type="text" name="yanzhengma" />
<iframe src="code/middle.php" height="20px" width="65px" frameborder="0" id="chkimg" scrolling="no" style=" margin-top:5px">
</iframe>
<a  href="javascript:chkimg.location.reload(); ......

²ÉÓÃPHPʵÏÖ¡±·þÎñÆ÷ÍÆ¡±¼¼ÊõµÄÁÄÌìÊÒ

    * ×÷Õß: laruence(http://www.laruence.com)
    * ±¾ÎĵØÖ·: http://www.laruence.com/2008/04/16/118.html
    * ×ªÔØÇë×¢Ã÷³ö´¦
´«Í³µÄB/S½á¹¹µÄÓ¦ÓóÌÐò£¬¶¼ÊDzÉÓÔ¿Í»§¶ËÀ­”½áÊøÀ´ÊµÏÖ¿Í»§¶ËºÍ·þÎñÆ÷¶ËµÄÊý¾Ý½»»»¡£
±¾ÎĽ«Í¨¹ý½áºÏTicks(¿ÉÒԲο´ÎÒ ......

¡¾PHPϵÁн̡̳¿(6)——PHPÖеıí´ïʽ

±í´ïʽÊÇ PHP ×îÖØÒªµÄ»ùʯ¡£ÔÚ PHP ÖУ¬¼¸ºõÄãËùдµÄÈκζ«Î÷¶¼ÊÇÒ»¸ö±í´ïʽ¡£¼òµ¥µ«È´×ȷµÄ¶¨ÒåÒ»¸ö±í´ïʽµÄ·½Ê½¾ÍÊÇ“anything that has a value”¡£
×î»ù±¾µÄ±í´ïʽÐÎʽÊdz£Á¿ºÍ±äÁ¿¡£µ±Äã¼üÈë“$a = 5”£¬¼´½«Öµ '5' ·ÖÅ䏸±äÁ¿ $a¡£'5'£¬ºÜÃ÷ÏÔ£¬ÖµÎª 5£¬»»¾ä»°Ëµ '5' ÊÇÒ»¸öֵΪ5µÄ±í´ïʽ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ