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

phpÖÐʹÓÃcom×é¼þ³öÏÖ"¾Ü¾ø·ÃÎÊ"µÄ´¦Àí


´úÂëÈçÏ£¬
// ½¨Á¢Ò»¸öÖ¸ÏòÐÂCOM×é¼þµÄË÷Òý
$word = new COM("word.application") or die("Can't start Word!");
// ÏÔʾĿǰÕýÔÚʹÓõÄWordµÄ°æ±¾ºÅ
echo "Loading Word, v. {$word->Version}
";
exit;
?>
ÓÐʱºòÄã»áµÃµ½Ò»¸ö´íÎó£¬
PHP Fatal error: Uncaught exception 'com_exception' with message 'Failed
to create COM object `word.application': ¾Ü¾ø·ÃÎÊ. '
½â¾ö·½·¨£º
µã»÷¿ªÊ¼²Ëµ¥£¬ÔËÐÐdcomcnfg
Ë«»÷“×é¼þ·þÎñ”£¬Ë«»÷“¼ÆËã»ú”£¬Ë«»÷“ÎҵĵçÄÔ”£¬Ñ¡Ôñ“DCOMÉèÖÔ
ÔÚÓÒ±ßÕÒµ½ÐèÒªµÄCOM×é¼þ£¬´ËÀýÖÐΪ“Microsoft Word Îĵµ”
ÓÒ»÷£¬´ò¿ª“ÊôÐÔ”²Ëµ¥£¬Ñ¡Ôñ“°²È«”±êÇ©
½«“Æô¶¯ºÍ¼¤»îȨÏÞ”ÉèÖóɓ×Ô¶¨Ò唣¬È»ºóµã»÷±à¼­
µã»÷“Ìí¼Ó”>>“¸ß¼¶”>>“Á¢¼´²éÕÒ”£¬ÕÒµ½“internet À´±öÓû§”£¨Ä¬ÈÏΪIUSER_µçÄÔÃû£©£¬µã»÷“È·¶¨”
½«“internet À´±öÓû§”µÄȨÏÞÉèÖÃΪ±¾µØÆô¶¯ÔÊÐí£¬±¾µØ¼¤»îÔÊÐí
È·¶¨£¬Íê³É
ÔÙ´ÎÔËÐÐÉÏÊö³ÌÐò£¬ÏÔʾ½á¹ûΪ
"Loading Word, v. 11.0"
±¾ÎĵØÖ·
DONE.Good Luck.^^
 ²¹³ä£º
php.iniÖÐÉèÖÃ
com.allow_dcom = true
²Î¿¼×ÊÁÏ:
http://bugs.php.net/bug.php?id=32133
http://figured-it-out.com/figured-out.php?sid=24


Ïà¹ØÎĵµ£º

PHP+AjaxʵÏÖTabЧ¹û

ÓÃAjaxʵÏÖTabЧ¹ûµÄ
ÏÈ´´½¨
ajax.php£¬ÔÚÆäÖÐÊäÈëÈçÏ´úÂ룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample 2_1</title>
<me ......

PHP ÖÐ×Ô¶¨Ò庯ÊýµÄ¼¸ÖÖ·½Ê½


PHPÖÐͨ³£Óм¸ÖÖ×Ô¶¨Ò庯ÊýµÄ·½·¨£¬ÏÂÃæ½éÉÜһϣ¬ÎÒÃÇʹÓõÄÊÇÕâÖÖ·½Ê½£º
<?php
function foo($arg)
{
return $arg
}
?>
µ±Ä³Ð©²ÎÊýΪ¿ÉÑ¡ÊÇ£¬¿ÉÒÔÕâÑù¶¨Ò壺
<?php
function foo($arg = NULL)
{
return $arg == NULL ? "" : $arg;
}
?>
µ±ÎÒÃDz»ÏÞÖÆ²ÎÊý¸öÊýµÄʱºò£¬Ò²¿ÉÒ ......

PHP ¶ÁдÎļþʾÀý


¡¡¡¡PHP ÖУ¬Êý¾Ýͨ³£¶¼ÊÇ´æ´¢ÔÚMySQLÊý¾Ý¿âµ±Öеġ£µ«ÊÇÓÐЩʱºò£¬ÎÒÃÇ»¹ÊÇÐèҪʹÓÃPHP¶ÁдһЩ±¾µØÎļþ¡£±ÈÈçÉú³É¾²Ì¬Ò³Ãæ»òÕßÊý¾ÝµÄ±¾µØ»º´æ¡£
¡¡¡¡ÎÒÃÇÓÃÒ»¸ö¼òµ¥µÄ·ÃÎÊÈÕÖ¾À´ÑÝʾһÏÂfopen, fread, fwrite, fcloseµÄÓ÷¨¡£
¡¡¡¡Ã¿µ±ÎÒÃÇ·ÃÎÊ´ËÍøÒ³µÄʱºò£¬»áÏÔʾ³ö·ÃÎʹýµÄIPÒÔ¼°·ÃÎÊʱ¼ä£»Í¬Ê±µ±Ç°µÄ·ÃÎÊÒ²»á±»¼Ç ......

php ¶ÔÎļþ²Ù×÷

PHP´´½¨Îļþ£¨¼Ð£©ÒÔ¼°Ä¿Â¼²Ù×÷
 Ò»¡¢Ä¿Â¼²Ù×÷
   
      Ê×ÏÈÊÇ´ÓĿ¼¶ÁÈ¡µÄº¯Êý,opendir(),readdir(),closedir(),ʹÓõÄʱºòÊÇÏÈ´ò¿ªÎļþ¾ä±ú,¶øºóµü´úÁгö:
<?php
$base_dir="filelist/";
$fso=opendir($base_dir);
echo  $base_dir."<hr/>";
whil ......

ÖØÒªµÄPHP³¬¼¶È«¾Ö±äÁ¿×ܽá




ÖØÒªµÄPHP³¬¼¶È«¾Ö±äÁ¿×ܽá

2008-07-14 16:53:03
¡¡±êÇ©£ºÈ«¾Ö±äÁ¿
¡¡¡¡¡¡[ÍÆË͵½¼¼ÊõȦ
]
        PHPÓÐ9¸öÔ¤¶¨Òå±äÁ¿Êý×飬·Ö±ð×ܽáÈçÏ£º
 
1¡¢$_SERVER
       
$_SERVER³¬¼¶È«¾Ö±äÁ¿°üº¬ÓÉweb·þÎñÆ÷´´½¨µÄÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ