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

phpÄ£°å¼¼Êõ

Õ¾µã½á¹¹

´úÂë:
Õ¾µã
  ©»includes
       ©»class.inc
  ©Çtemplet
       ©»index.htm
       ©Çlist.htm
       ©»content.htm
  ©Çindex.php
  ©»content.php
¿â½á¹¹

´úÂë:
-- Êý¾Ý¿â: `test`
-- ±íµÄ½á¹¹ `test`
CREATE TABLE `test` (
  `id` smallint(3) NOT NULL auto_increment,
  `name` varchar(10) NOT NULL default '',
  `sex` enum('ÄÐ','Å®') NOT NULL default 'ÄÐ',
  `age` smallint(2) NOT NULL default '0',
  `email` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
--------------- class.incÎļþ --------
CODE:
<?
php 
 
class 
mycon
{  
    private 
$myhost

    private 
$myuser

    private 
$mypwd

    function 
mycon
(
$host
=
"localhost"
,
$user
=
"root"
,
$pwd
=
""
){ 
      
$this
->
myhost 

$host

      
$this
->
myuser 

$user

      
$this
->
mypwd 

$pwd

    } 
    function 
connect
(){ 
      return 
mysql_connect
(
$this
->
myhost
,
$this
->
myuser
,
$this
->
mypwd
); 
    } 
  } 

  class 
templet

     private 
$source_file

     function 
get_file
(
$filename
){ 
         
$


Ïà¹ØÎĵµ£º

PHP£¬JavaºÍ.NETµÄ¹ýÈ¥£¬ÏÖÔÚºÍδÀ´)

PHP£¬JavaºÍ.NETµÄ¹ýÈ¥£¬ÏÖÔÚºÍδÀ´
±¾ÎĶÔWeb±à³ÌÓïÑÔ½øÐÐÁËÒ»·­ÌÖÂÛ£¬ÌÖÂ۵ĶÔÏóÖ÷ÒªÊÇPHP£¬JavaºÍ.NETƽ̨ÉϵÄVB.NETºÍC#¡£ÎÄÕ¶ÔËÄÖÖÓïÑÔÔÚWeb¿ª·¢ÉϵÄÌØµã½øÐÐÁ˼òÂÔµÄÃèÊö£¬²¢Ö÷ÒªÔÚÐÔÄÜ·½Ãæ½øÐÐÁ˱Ƚϡ£
¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿PHP£¬JavaºÍ.NETÒѾ­³ÉΪÁËδÀ´ÎåÄêÄÚ³ÌÐòÔ±±ØÐë¾ß±¸µÄ¼¼ÄÜ£¬¶øÕâÈýÖÖÓïÑÔ£¨»òÕß¿ÉÒÔ³ÆÖ®Î ......

PHP²åÈëÊý¾Ý¿â´úÂ룬±à¼­£¬É¾³ý

²åÈë´úÂë
 <?
$action=$_GET['action'];
switch($action){
//Ìí¼Ó¼Ç¼
case"add";
$mail = trim(htmlspecialchars($_POST["mail"]));
$username = trim(htmlspecialchars($_POST["username"]));
$tel = trim(htmlspecialchars($_POST["tel"]));
$fax = trim(htmlspecialchars($_POST["fax"]));
$c ......

ÔÚCENT OSÉϱàÒë°²×°APACHE+PHP+MYSQL

 Ô´ÂëĿ¼£º/usr/local/src/
 Ó¦ÓÃĿ¼£º/usr/local/app/
Ò»¡¢MYSQL°²×°¡£
 1.ÏÂÔØMSYQLÔ´Â룺
http://www.mysql.com/downloads/mysql/
×î½ü°æ±¾ÊÇ mysql-5.1.47.tar.gz
2.ÉÏ´«µ½·þÎñÆ÷Ŀ¼/usr/local/src/
cd /usr/local/src/
tar zxvf mysql-5.1.47.tar.gz
cd mysql-5.1.47
./configure --prefi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ