php config
php config
1.°²×°Apache2.2
2.°²×°php5.2(×¢ÒâÑ¡ÔñËùÓеĿâÎļþ)
3.½«phpMyAdmin½âѹ£¬¿½±´ÖÁApache2.2\htdocs\phpmyadmin(¸Ã·¾¶¿ÉÒÔ×ÔÓɸıä)Ï¡£
4.ÐÞ¸ÄÅäÖÃÎļþ£º
1)ÐÞ¸Äphp.ini
¾ßÌå²Ù×÷£º
extension_dir = "C:\Program Files\PHP\ext" (536)
extension=php_mysql.dll (640)
2)ÐÞ¸Ähttpd.conf
¾ßÌå²Ù×÷£º
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" (127)
(240)
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
(385)
AddType application/x-httpd-php .php
DirectoryIndex index.htm
DirectoryIndex index.php
3)ÅäÖÃphpMyAdmin
´Ó\phpmyadmin\librariesÖп½±´Ò»¸öconfig.default.php,½«Æ俽ÖÁ\phpmyadminĿ¼ÏÂ,²¢ÖØÃüÃûΪ£ºconfig.inc.php
ÐÞ¸Äconfig.inc.php£º
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
4)½«PHPĿ¼ÏµÄphp.ini¡¢libmysql.dll¡¢php_mysql.dll(PHP/extĿ¼ÏÂ)¿½±´ÖÁsystem32Ŀ¼Ï¡£
5.ÖØÆôPC.
Ïà¹ØÎĵµ£º
ʵÀýÒ»£ºÎ޲εĴ洢¹ý³Ì
$conn = mysql_connect('localhost','root','root') or die ("Êý¾ÝÁ¬½Ó´íÎó!!!");
mysql_select_db('test',$conn);
$sql = "
create procedure myproce()
begin
INSERT INTO user (id, username, sex) VALUES (NULL, 's', '0');
end;
";
mysql_query($sql);//´´½¨Ò»¸ömyproceµÄ´æ´¢¹ý³Ì
......
Ò»¡¢ÏµÍ³Ô¼¶¨
¡¡¡¡»·¾³Èí¼þÏÂÔغó´æ·ÅλÖãºX:\Server_Tools
¡¡¡¡»·¾³Èí¼þ°²×°Î»ÖãºX:\Server_Core
¡¡¡¡PHP°²×°Î»ÖãºX:\Server_Core\PHP
¡¡¡¡MySQL°²×°Î»ÖãºX:\Server_Core\MySQL
¡¡¡¡IISÍøÕ¾Õ¾µã¸ùĿ¼£ºX:\wwwroot
¡¡¡¡MySQL Êý¾Ý¿âλÖãºX:\Database
¡¡¡¡Php.ini´æ·ÅλÖãºX:\Windows\php.ini
¡¡¡¡My.ini ´æ· ......
¶þ·ÖÖÓ: ½¨Á¢Ò»¸ö CodeIgniter ÍøÕ¾
ÓÃCI½¨Ò»¸öÍøÕ¾ºÜÈÝÒס£ ÕâÒ»Õº̣ܶ¬½âÊÍÁËÓÃCIÖÆ×÷Íøվʱ·¢ÉúÁËЩʲô£¬ÄÄЩÎļþ±»´´½¨£¬ÈÃÎÒÃÇÀ´ÇÆÒ»ÇÆ£º
. ´´½¨ÍøÕ¾ÐèҪʲôÈí¼þ£¿
. °²×° CI Îļþ: Ò»¸ö¼òµ¥µÄÏÂÔغͽâѹËõ²Ù×÷
. CI µÄ»ù±¾ÉèÖÃ: ÓÐÄÄЩÎļþ¼Ð¼°ËüÃÇÊÇÈçºÎ×éÖ¯µÄ
. CI °²×°Ê±Ä¬ÈϵĿØÖÆÆ÷ºÍÊÓͼ
. һЩ¼òµ¥µÄ ......
<?
//------------------------
// PHPÄÚÖÃ×Ö·û´®º¯ÊýʵÏÖ
//------------------------
//×Ö·û´®³¤¶È
function strlen ($str)   ......