Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¿ò¼ÜÅÅÃû X


±¾ÎÄÀ´×Ô¹úÍâµÄÒ»¸öPHP¼¼ÊõÈËÔ±ÍøÕ¾£¬×ܽáÁ˹úÍâµÄÊ®¸öĿǰ×îÁ÷ÐеÄPHP
MVC¿ò¼Ü¡£¾ßÌåÅÅÃû˳Ðòδ±Ø×¼È·£¬»¹ÓÐЩ֪Ãû¿ò¼Ü£¬ÈçKohanaµÈҲûÓÐÌá¼°¡£²»¹ýÈÔ¿ÉÒÔ×öΪһƪ²»´íµÄ²Î¿¼¡£
ÒÔÏÂΪʮ¸öĿǰ×îÁ÷ÐеĻùÓÚMVCÉè¼ÆÄ£Ê½µÄPHP¿ò¼Ü¡£
1. Yii
YiiÊÇÒ»¸ö»ùÓÚ×é¼þµÄ¸ßÐÔÄܵÄPHPµÄ¿ò¼Ü£¬ÓÃÓÚ¿ª·¢´ó¹æÄ£WebÓ¦Óá£Yii²ÉÓÃÑ ......

phpÖе¥ÒýºÅºÍË«ÒýºÅÇø±ð

1 PHPÖе¥ÒýºÅÓëË«ÒýºÅµÄÇø±ð  
¡¡¡¡ÔÚPHPÖУ¬Í¨³£Ò»¸ö×Ö·û´®±»¶¨ÒåÔÚÒ»¶ÔÒýºÅÖУ¬È磺
'I am a string in single quotes'
"I am a string in double quotes"
¡¡¡¡PHPÓï·¨·ÖÎöÆ÷ÊÇÓóɶԵÄÒýºÅÀ´ÅжÏÒ»¸ö×Ö·û´®µÄ¡£Òò´Ë£¬ËùÓÐ×Ö·û´®±ØÐëʹÓÃͬһÖÖµ¥»òÕßË«
ÒýºÅÀ´¶¨Ò忪ʼºÍ½áÊø¡£ÀýÈ磬ÏÂÃæµÄ×Ö´®¶¨ÒåÊ ......

PHP Öг¤Á¬½ÓµÄʵÏÖ

¡¡¡¡Ã¿´ÎÎÒÃÇ·ÃÎÊ PHP ½Å±¾µÄʱºò£¬¶¼Êǵ±ËùÓеÄPHP½Å±¾Ö´ÐÐÍê³Éºó£¬ÎÒÃDzŵõ½·µ»Ø½á¹û¡£Èç¹ûÎÒÃÇÐèÒªÒ»¸ö½Å±¾³ÖÐøµÄÔËÐУ¬ÄÇôÎÒÃǾÍҪͨ¹ý PHP ³¤Á¬½ÓµÄ·½Ê½£¬À´´ïµ½ÔËÐÐÄ¿µÄ¡£
¡¡¡¡Ã¿¸ö PHP ½Å±¾¶¼ÏÞÖÆÁËÖ´ÐÐʱ¼ä£¬ËùÒÔÎÒÃÇÐèҪͨ¹ý set_time_limit À´ÉèÖÃÒ»¸ö½Å±¾µÄÖ´ÐÐʱ¼äΪÎÞÏÞ³¤£»È»ºóʹÓà flush() ºÍ ob_flush() ......

phpǶÈëhtml

<?php
function outputMyName($fname) {
   echo "ÎÒµÄÃû×ֽР";
    echo "ÖÜ ".$fname."<br />";
}
 ?>
<html>
<body>
<?php
outputMyName("ʤ³¬");
outputMyName("Óîºã");
outputMyName("ÓîÃË");
?>
</body>
</html>
½á¹ûÈçÏ£ ......

linuxÏÂapache+php°²×°³£¼ûÎÊÌâ


configure: error: Unable to find libgd.(a|so)
Èç¹ûʹÓõÄÊÇubuntu»òdebian¾ÍºÜ¼òµ¥ÁË£¬Ö±½Ósudo apt-get install apache2
libapache2-mod-php5 php5 php5-gd ¾Í»ù±¾Éϸ㶨£¬µ«ÊÇÓÃÔ´´úÂë°²×°»¹ÊǺÜÂé·³¡«
wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo . ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ