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

PHPÉú³ÉwordÎĵµ

<?PHP
$word = new COM("word.application") or die("Can't start Word!");
// print the version of Word that's now in use
echo "Loading Word, v. {$word->Version}";
// set the visibility of the application to 0 (false)
// to open the application in the forefront, use 1 (true)
$word->Visible = 0;
// create a new document in Word
$word->Documents->Add();
// add text to the new document
$word->Selection->TypeText("Testing 1-2-3...");
//save the document in the Windows temp directory
$word->Documents[1]->SaveAs("C:\comtest.doc");
// close the connection to the COM component
$word->Quit();
?>


Ïà¹ØÎĵµ£º

php ħ·¨ÒýÓú¯Êý

PHPÌṩÁ½¸ö·½±ãÎÒÃÇÒýÓÃÊý¾ÝµÄħ·¨ÒýÓú¯Êýmagic_quotes_gpcºÍmagic_quotes_runtime£¬ÕâÁ½¸öº¯ÊýÈç¹ûÔÚphp.iniÉèÖÃΪONµÄʱºò£¬¾Í»áΪÎÒÃÇÒýÓõÄÊý¾ÝÅöµ½µ¥ÒýºÅ'ºÍË«ÒýºÅ"ÒÔ¼°·´Ð±Ïß \ ÊÇ×Ô¶¯¼ÓÉÏ·´Ð±Ïߣ¬°ïÎÒÃÇ×Ô¶¯×ªÒë·ûºÅ£¬È·±£Êý¾Ý²Ù×÷µÄÕýÈ·ÔËÐУ¬¿ÉÊÇÎÒÃÇÔÚphp²»Í¬µÄ°æ±¾»òÕß²»Í¬µÄ·þÎñÆ÷ÅäÖÃÏ£¬ÓеÄmagic_quotes_g ......

PHP header() examples ÍêÕû´úÂë


/*** Function: PHP header() examples (PHP)
**
Desc: Some examples on how to use the header() function of PHPYou find
a detailed tutorial at expertsrt.com (English) or at ffm.junetz.de
(German).These is also a good help about caching at web-caching.com.
**
Example: see below.
&lt;br/& ......

¼¼Êõ±¸Íü Ϊphp5ÅäÖÃmysql

ÏÖ´æÎÊÌ⣺
1.ÎÞ·¨¼ÓÔØ mcrypt À©Õ¹£¬Çë¼ì²éÄúµÄ PHP ÅäÖá£
°´ÕÕÍøÉÏ˵µÄ¸Ã×öµÄÃ²ËÆ¶¼×öÁË µ«ÊǵÚÒ»´Î´ò¿ªphpmyadminÖ÷ҳʱ »¹ÊÇÓÐÕâ¸öÌáʾ Ææ¹ÖµÄÊǽøÈ¥Ö®ºó ÀïÃæÃ»ÓÐÕâ¸öÌáʾ È»ºóÍ˳öÍâÃæÒ²Ã»ÁË
2.ÅäÖÃÎļþÏÖÔÚÐèÒªÒ»¸ö¶ÌÓïÃÜÂë¡£
ÍøÉÏÕÒÁË µ«ÊÇÎÊÌ⻹ÊÇû½â¾ö
×òÌìÎÊÌâÈ«²¿½â¾ö
ÒòΪÅäÖÃÎļþÃû³ÆÎ´¸Ä ÕýÈ·µÄÃû ......

PHP SessionʹÓÃ

ÔÚPHP¿ª·¢ÖÐ¶Ô±ÈÆðCookie£¬session ÊÇ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ»á»°£¬Ïà¶Ô°²È«£¬²¢ÇÒ²»Ïñ Cookie ÄÇÑùÓд洢³¤¶ÈÏÞÖÆ.ÓÉÓÚ Session ÊÇÒÔÎı¾ÎļþÐÎʽ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ£¬ËùÒÔ²»Å¿ͻ§¶ËÐÞ¸Ä Session ÄÚÈÝ¡£Êµ¼ÊÉÏÔÚ·þÎñÆ÷¶ËµÄ Session Îļþ£¬PHP ×Ô¶¯ÐÞ¸Ä session ÎļþµÄȨÏÞ£¬Ö»±£ÁôÁËϵͳ¶ÁºÍдȨÏÞ£¬¶øÇÒ²»ÄÜͨ¹ý ftp Ð޸ģ¬ËùÒÔ° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ