PHPɾ³ý´æÔÚµÄÊý¾Ý±í
Á¬½Óµ½Êý¾Ý¿âÖ®ºó£¬²»µ«¿ÉÒÔÔÚÊý¾Ý¿âÖд´½¨±í£¬Ò²¿ÉÒÔɾ³ýÒѾ´æÔÚµÄ±í¡£É¾³ý±íÒ²ÊÇͨ¹ýmssql_query()º¯ÊýÖ´ÐÐÏàÓ¦µÄɾ³ý±íSQLÓï¾äÀ´ÊµÏÖ¡£
<?php
$hostname="datahost";
$dbuser="sa";
$dbpasswd="123";
$dbname="tempdb";
$conn=mssql_connect($hostname,$dbuser,$dbpasswd);
mssql_select_db($dbname);
$t_name="my_table";
$c_t="drop table $t_name";
$result=mssql_query($c_t,$conn);
if ($result)
{
echo"<font color=#666666>ÒѾ³É¹¦É¾³ýÊý¾Ý¿â</font><strong><font color=green>".$dbname."</font></strong><font color=#666666>Öеıí</font><strong><font color=green>".$t_name."</font></strong>";
}
else
{
echo"<font color=red>ÔÚɾ³ý±íʱ³ö´í£¬Î´³É¹¦É¾³ý£¡</font>";
}
mssql_close($conn);
?>
½á¹ûÑÝʾ£ºhttp://mingking.limewebs.com/db/d_table.php
Ïà¹ØÎĵµ£º
ÏÐÀ´Óпգ¬Ñ§Ï°Ò»ÏÂPHPµÄMVCģʽ£¬³äʵһÏÂ×ÔÎÒ£¬²»ÖÁÓÚÂäºó¡£¿´Á˸ö¼òµ¥µÄʾÀý
£¬×öµã¼Ç¼¡£
µ¥µãÈë¿Ú£º
1. ËùÓгÌÐò¶¼ÊÇͨ¹ýindex.phpÀ´½øÐе÷Óõģ¬ÕâÒª¿¿.htaccessÎļþÀ´½øÐпØÖÆ¡£
2. URL router¿ÉÒÔÓɵ¥¶ÀµÄRouterÀàÀ´½øÐÐControllerµÄÑ¡Ôñ£¬Ò²¿ÉÒÔ·ÅÔÚindex.phpÖнøÐÐÑ¡Ôñ¡£
3. Config×îºÃ·Åµ½µ¥¶ÀµÄÎļþÖУ¬½á ......
php ͨÓõĵ÷Óà soµÄ·½·¨ÊÇʹÓÃdl()º¯Êý£¬µ«ÊÇÔÚphp5.3Ö®ºó²»ÔÙÖ§³ÖÕâÖÖ·½·¨£¬½öÖ§³Ö¾²Ì¬µ÷Óã¬Ê¹ÓÃdl() ¶¯Ì¬µ÷Óõķ½·¨¼û£º
ÒýÓÃÒ³1: http://tech.idv2.com/2007/07/06/use-local-so-in-php/
¸ÐлÔ×÷ÕßÌṩµÄÇåÎúÃ÷Á˵ķ½·¨£¬µ«ÊÇÎÒÔÚ5.3.1°æ±¾iÖÐûÓÐͨ¹ý£¬ÓÚÊÇÎÒÕÒµ½ÁËÒ³Ã棺
  ......
±¾ÎÄÈí¼þµÄÏÂÔصØÖ·¾Í²»Áгö£¬Ö÷ÒªÊǼǼ°²×°Ê±µÄ²½Öè¼°Ïà¹ØÎÊÌâµÄ´¦Àí·½·¨£»»ùÓÚ°²×°·½·¨Ä¿Ç°ÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÀûÓÃRPM°ü°²×°£¬Ò»ÖÖÔ´Âë±àÒë°²×°£»ÒÔÏÂÖ÷
ÒªÊÇÒÔÔ´Âë±àÒë°²×°£»ÒòΪԴÂë°²×°Èí¼þµÄÏ໥ÒÀÀµÐÔС£¬°²×°·½Ê½Óø÷ÖÖunix/linuxϵͳ£¬Î¬»¤·½±ã¡£Èç¹ûÏëÈ¥³ýÏà¹Ø·þÎñʱ£¬Ö±½Órm
–rfĿ¼ ¼´¿É£»½¨Òé²ÉÓÃÔ´Âë· ......
ºÜ¶àʱºòÎÒÃÇϲ»¶ÓÃjsÀ´»ñÈ¡ÈÕÆÚºÍʱ¼ä£¬µ«Õâ½ö½öÊÇ¿Í»§¶ËµÄ¡£
ÎÒÃÇ¿ÉÒÔÓÃphpµÄdateº¯Êý¼´¿ÉÀ´»ñÈ¡·þÎñÆ÷ÉϵÄʱ¼ä£º
<?php
//½«Ê±ÇøÉèÖÃΪÖйú
date_default_timezone_set("PRC");
echo date("Y-m-d l H:i:s A");
//ÀýÊä³ö£º2010-03-06 Saturday 11:51:29 AM
?> ......
fedora8 ÓÃyumÀ´¹ÜÀí°²×°Apache+PHP+MysqlµÄ»ù±¾°²×°¡£
1. °²×°Apahce, PHP, Mysql, ÒÔ¼°phpÁ¬½Ómysql¿â×é¼þ¡£
yum -y install httpd php mysql mysql-server php-mysql
2. ÅäÖÿª»úÆô¶¯·þÎñ
/sbin/chkconfig httpd on [ÉèÖÃapache·þÎñÆ÷httpd·þÎñ¿ª»úÆô¶¯]
......