Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Éú³ÉËæ»úÊý

function randomkeys($length)
{
 $key='';
 $pattern='123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
 for($i=0;$i<$length;$i++)
 {
   $key .= $pattern{mt_rand(0,47)}; 
       
  }
   ......

linux·þÎñÆ÷ÓÃPHPµÄPDOÁ´½Ómyql·½·¨(php pdo)

PDOΪºÎÎï
POD£¨PHP Data Object£©À©Õ¹ÔÚPHP5ÖмÓÈ룬PHP6Öн«Ä¬ÈÏʶÓÃPDOÁ¬½ÓÊý¾Ý¿â£¬ËùÓзÇPDOÀ©Õ¹½«»áÔÚPHP6±»´ÓÀ©Õ¹ÖÐÒÆ³ý¡£¸ÃÀ©Õ¹ÌṩPHPÄÚÖÃÀà PDOÀ´¶ÔÊý¾Ý¿â½øÐзÃÎÊ£¬²»Í¬Êý¾Ý¿âʹÓÃÏàͬµÄ·½·¨Ãû£¬½â¾öÊý¾Ý¿âÁ¬½Ó²»Í³Ò»µÄÎÊÌâ¡£
ÎÒÊÇÅäÖÃÔÚwindowsÏÂ×ö¿ª·¢Óõġ£
PDOµÄÄ¿±ê
ÌṩһÖÖÇáÐÍ¡¢ÇåÎú¡¢·½±ãµÄ API
ͳ ......

ÓÃPHP¹¹½¨×Ô¶¨ÒåËÑË÷ÒýÇæSphinx

1. ´´½¨Ë÷Òý
$ sudo /usr/local/bin/indexer --config /usr/local/etc/sphinx.conf --all
Sphinx 0.9.7
Copyright (c) 2001-2007, Andrew Aksyonoff
using config file '/usr/local/etc/sphinx.conf'...
indexing index 'catalog'...
collected 8 docs, 0.0 MB
sorted 0.0 Mhits, 82.8% done
total 8 docs, 149 byt ......

apache ºÍphp °²×°ÅäÖÃ

ÏȰ²×°apache http server   һ·next£»
ÔÙ°²×°php£¬×¢ÒâÑ¡Ôñ Apache 2.2.x Module£»
°²×°½áÊøÒԺ󣬻¹ÐèÒªÐÞ¸Ä Apache µÄÅäÖÃÎļþ¡£Îļþ·¾¶Îª
C:\Program Files\Apache
Software Foundation\Apache2.2\conf\httpd.conf¡£
Óà Notepad ´ò¿ª
httpd.conf£¬ÔÚÎļþ×îºóÓÐÒÔ¡¡#BEGIN PHP INSTALLER EDITS - RE ......

¹úÄÚPHP¿ªÔ´½¨Õ¾³ÌÐòÒ»ÀÀ ÄÏÈý·½

×î½ü¸ø¹«Ë¾×öÒ»¸ö¼òµ¥µÄÍøÉÏÏîÄ¿£¬ÓÚÊÇÏëµ½ÁËÓÿªÔ´µÄ³ÌÐò£¬ËÑÁËһϣ¬¸Ð¾õͦÓÐÓõģ¬¾Í·¢ÉÏÀ´ÁË¡£
¹úÄÚPHP¿ªÔ´½¨Õ¾³ÌÐòÒ»ÀÀ
¹úÍâµÄ¿ªÔ´¼¼ÊõÒ²Ó°ÏìºÍÍÆ¶¯Á˹úÄÚ¿ªÔ´³ÌÐòµÄ·¢Õ¹£¬ÉÏÎÄÎÒ½éÉܵġ¶¹úÍâÓÅÐ㿪ԴPHP½¨Õ¾³ÌÐòÒ»ÀÀ¡· ÖУ¬ºÜ¶à¹úÍ⿪Դ³ÌÐò²¢²»Ì«·ûºÏÖйúÈ˵ÄʹÓÃϰ¹ß£¬¶ø¹úÄÚÓÐһЩ³§¼Ò»ò¸öÈËÒ²×öÁËһЩ²»´íµÄ²úÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ