呵呵,PHP的技术都掌握在外国人手里,学的话去外国网站看吧

解决方案 »

  1.   

    谢谢!谁有PHP安装全攻略里的这几个软件,有些软件我在网上下不到,有的话麻烦加QQ:119105123 传个给我,谢谢了!
      

  2.   

    我发下配置吧. 我的就是直接去做项目的,之前没写过一行PHP。所以语言都是相通的。有经验很容易学的。<1>安装配置PHP 
      1.解压缩PHP压缩包到C:\php\ 
    2.复制C:\php\目录下的php4ts.dll及C:\php\dlls目录下的所有文件到windows安装目录的系统文件夹里 
    (win9x/me是system目录,winNT,2k/winXP,2003是system32目录) 复制C:\php\php.ini-dist到windows安装目录下(如:c:\windows),并将其改名为php.ini。用记事本打开,修改一下信息: 
      搜索extension_dir = ./ 这行,并将其路径指到你的PHP目录下的extensions目录,比如: 
      extension_dir = C:\php\extensions 
    如若想支持更多模块,,搜索: 
    ;Windows Extensions 
    ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. 

    下面都用分号在前面注释掉了支持的扩展模块,如果你想PHP支持某个模块,请将前面的“;”去掉即可 
    修改完成后,保存php.ini,到此完成PHP的安装和配置。 
    我们在下面加入一行 
    extension=php_mysql.dll 
    //Note 1: The extension dir need not be ".\", as Hermawan mentioned. It works fine for me with the extensions subdir where the other extensions are located. 
    //Note 2: The php.ini file need not be in the Apache root, as lars mentioned. It works fine for me in the Windows dir. <2>安装Apach2 
    1.备份 C:\Program Files\Apache Group\Apache2\conf\httpd.conf 文件。 
    2.用记事本打开C:\Program Files\Apache Group\Apache2\conf\httpd.conf 
    找到: 
    #NameVirtualHost * 
    修改为: 
    NameVirtualHost 127.0.0.1 //或localhost 
    找到: 
    <VirtualHost 127.0.0.1> 
    修改下面几行: 
    ServerAdmin (你刚才安装时候输入的管理员信箱) 
    DocumentRoot C:\Program Files\Apache Group\Apache2\htdocs 
    ServerName Apache2 
    ErrorLog C:\Program Files\Apache Group\Apache2\logs\error_log 
    CustomLog C:\Program Files\Apache Group\Apache2\logs\access_log common 
    </VirtualHost> 
    找到: 
    AddType application/x-tar .tgz 
    在下面添加以下两行: 
    AddType application/x-httpd-php .php 
    AddType image/x-icon .ico 
    找到: 
    #LoadModule ssl_module modules/mod_ssl.so 
    在下面添加一行: 
    LoadModule php5_module C:\php\sapi\php4apache2.dll //这里php5_module是关键,如果php4_module apache就无法启动了 
    增加默认文件: 找到DirectoryIndex * 这行,可以这样修改,添加默认的文件名: 
    DirectoryIndex index.php default.php index.htm index.html default.htm default.html 
    保存文件,重起apache服务器。 
    最后,在该文件末尾加上下面两行 
    ScriptAlias /php/ "c:/php/" 
    Action application/x-httpd-php "/php/php.exe“ 到此Apache的PHP环境已经完全建立了。