??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美在线影院,亚洲一区二区三区视频在线,欧美精品一区二区三区涩爱蜜http://www.aygfsteel.com/hayun/category/19897.htmlwelcome to my online log ! open java new world! Taste java charm........zh-cnSun, 06 May 2007 01:16:41 GMTSun, 06 May 2007 01:16:41 GMT60Windows 2000/XP/2003下安装配|IIS+PHP+MySQL+Zend Optimizer+GD?phpMyAdmin http://www.aygfsteel.com/hayun/articles/php5.html?/dc:creator>?/author>Sat, 05 May 2007 10:30:00 GMThttp://www.aygfsteel.com/hayun/articles/php5.htmlhttp://www.aygfsteel.com/hayun/comments/115436.htmlhttp://www.aygfsteel.com/hayun/articles/php5.html#Feedback0http://www.aygfsteel.com/hayun/comments/commentRss/115436.htmlhttp://www.aygfsteel.com/hayun/services/trackbacks/115436.htmlWindows 2000/XP/2003下安装配|IIS+PHP+MySQL+Zend Optimizer+GD?phpMyAdmin

一、Y件准备:(x)以下均ؓ(f)截止2005-4-20的最新正式版?br>PHPQ?.1.2Q:(x)http://www.php.net

MySQLQ?.0.19Q:(x)http://www.mysql.com

Zend OptimizerQ?.6.2Q:(x)http://www.zend.com

phpMyAdminQ?.8.0.2Q:(x)http://www.phpmyadmin.net

假设 C:\ Z现在所使用操作pȝ的系l盘Q如果你目前操作pȝ不是安装?C:\ Q请自行修改?/p>

二、安?PHP Q?/p>

Q?Q?下蝲后得?php-5.1.2-Win32.zip Q解压至C:\phpQ这个\径可以随意,不过下面要是用到q个路径Q请相应修改Q;

Q?Q再?C:\php\libmysql.dll 复制?C:\Windows\system32 下;

Q?Q将C:\PHP\php.ini-dist 复制到C:\Windows Q?Windows 2000 下ؓ(f) C:\WINNTQƈ改名ؓ(f)php.iniQ然后用C本打开Q利用记事本的查扑֊能搜索extension_dirQ将其\径指C?PHP 目录下的 extensions 目录Q比如:(x)

extension_dir = "C:\PHP\ext"Q?/p>

搜烦(ch);Windows Extensionsq仅打开需要的模块以节省内存(L每个模块前的;号即可)Q?/p>

extension=php_gd2.dll
GD库支持,如果不打开该模块则Discuz!论坛囄水印不能使用?/p>

extension=php_mbstring.dll
Z支持phpMyAdminQ打开mbstring?/p>

extension=php_mysql.dll
不用说了吧,支持MySQL?/p>

Q?Q配|?IIS 使其支持 PHP

首先必须定pȝ中已l正安?IIS Q如果没有安装,需要先安装 IIS?/p>

PHP 与IIS整合时支?CGI ?ISAPI 两种模式Q推荐?ISAPI 模式。这里只解介l?ISAPI 模式安装Ҏ(gu)QISAPI 模式安装步骤Q?/p>

?#8220;控制面板”?#8220;理工具”中选择“Internet 服务理?#8221;Q打开 IIS 后停止服务,然后在左?#8220;你需要支持PHP的Web站点上单d键选择“属?#8221;Q在打开?#8220; Web 站点属?#8221;H口?#8220;ISAPI {选器”标签里找到ƈ点击“d”按钮Q在弹出?#8220;{选器属?#8221;H口中的“{选器名称”栏中输入QPHP Q再可执行文g指向 php5isapi.dll 所在\径,如:(x)C:\PHP\php5isapi.dll ?/p>

打开“Web 站点属?#8221;H口?#8220;ȝ?#8221;标签Q找到ƈ点击“配置”按钮Q在弹出?#8220;应用E序配置”H口中找到ƈ点击“d”按钮Q在弹出的窗口中新增一个扩展名映射Q扩展名?.php Q单?#8220;览”可执行文g指向 php5isapi.dll 所在\径,如:(x)C:\PHP\php5isapi.dllQ然后一路确定即可?/p>

再打开“Web 站点属?#8221;H口?#8220;文档”标签Q找到ƈ点击“d”按钮Q向默认?Web 站点启动文档列表中添?index.php V?zhn)可以?index.php 升到最高优先Q这P讉K站点时就?x)首先自动寻扑ƈ打开 index.php 文档?/p>

定 Web 目录的应用程序设|和执行许可中选择为纯脚本Q然后在“Internet 服务理?#8221;左边?#8220;WEB服务扩展”中设|ISAPI 扩展允许QActive Server Pages 允许打开览器,输入Q?a href="http://localhost/">http://localhost/Q看到成功页面后Q在 IIS 根目录下新徏一?phpinfo.php Q内容如下:(x)


<?php
phpinfo();
?>
打开览器,输入Q?a href="http://localhost/phpinfo.php">http://localhost/phpinfo.phpQ将昄当前服务器所支持 PHP 的全部信息,可以看到 Server API的模式ؓ(f)QISAPI ?/p>


三、安?MySQL Q?/p>

    下蝲Windows Essentials (x86) ,直接双击安装卛_。这里本人安装到C:\MySQLQ安装过E中?x)提CZ是不是立卌行配|,选择否即可完成安装。安装完毕后Q在“开?#8221;菜单?#8220;q行”中输入:(x)C:\MySQL\bin\mysqld-nt -install Q运行成功之后再输入Qnet mysql start Q将?x)启?MySQL 服务Q如果你q想较详l的配置 MySQL Q就误?C:\MySQL\bin 目录Q运?MySQLInstanceConfig.exe Q按提示操作卛_?/p>

    如果你下载的?Windows (x86) Q解压后双击执行 Setup.exe 卛_Q步骤同上?/p>

    如果你下载的?Without installer (unzip in C:\) Q直接解压到C:\MySQLQ在“开?#8221;菜单?#8220;q行”中输入:(x) C:\MySQL\bin\mysqld-nt.exe Q运行成功之后再输入Qnet mysql start Q即可启?MySQL 服务?/p>


为MYSQL讄密码Q确保安全:(x)
一般菜单里面有配置向导MySQL Server Instance Config WizarQ运行后按下面步骤配|设|ROOT密码卛_


ROOT密码Q徏议社讄复杂点,保服务器安全!

也可以在MySQL Command Line Client里面用命令配|:(x)
首先在打开DOSH口Q然后进入目?mysqlbinQ再键入命o(h)mysql -uroot -pQ回车后提示你输密码Q如果刚安装好MYSQLQ超U用户root是没有密码的Q故直接回R卛_q入到MYSQL中了QMYSQL的提C符是:(x)mysql>

修改密码?
格式Qmysqladmin -u用户?-p旧密?password 新密?
例:(x)lroot加个密码zuozhan.net首先在DOS下进入目录mysqlbinQ然后键入以下命?
mysqladmin -uroot -password zuozhan.net
注:(x)因ؓ(f)开始时root没有密码Q所?p旧密码一就可以省略了?/p>

然后执行:
SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('zuozhan.net');
q里的命令是׃MySQL 4.1 ?qing)其后版本验证协议用的密码哈希法与老的客户端不兼容,在PHPMYADMIN里用正确密码登陆也会(x)提示Q?br>Client does not support authentication protocol requested
by server; consider upgrading MySQL client
所以是为后面正用PHPMYADMIN做准?/p>

q样ROOT密码p|ؓ(f)zuozhan.net?/p>

四、安?Zend Optimizer Q?/p>

    下蝲后得?ZendOptimizer-2.6.2-Windows-i386.exe Q直接双d装即可,安装q程要你选择 Web Server Ӟ选择 IIS Q然后提CZ是否 Restart Web ServerQ选择是,完成安装之前提示是否备䆾 php.ini Q点定后安装完成?/p>

五、安?phpMyAdminQ?br>下蝲得到 phpMyAdmin-2.8.0.2.zip Q将其解压到站点根目录,扑ֈ./libraties/config.default.phpq复制到phpMyAdmin根目录命名ؓ(f)config.inc.php Q做以下修改Q?/p>

搜烦(ch)$cfg['PmaAbsoluteUri']Q设|你的phpmyadmin的URLQ如Q?cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; 注意q里假设phpmyadmin在默认站点的根目录下
搜烦(ch)$cfg['blowfish_secret']Q设定好root密码后这里也要填写比如ROOT密码zuozhan.net则设|ؓ(f)$cfg['blowfish_secret'] = 'zuozhan.net';
搜烦(ch)$cfg['DefaultLang'] Q将其设|ؓ(f) zh-gb2312 Q?br>搜烦(ch)$cfg['DefaultCharset'] Q将其设|ؓ(f) gb2312 Q?br>搜烦(ch)$cfg['Servers'][$i]['auth_type']Q默认ؓ(f)configQ是不安全的Q不推荐Q推荐用cookieQ将其设|ؓ(f)$cfg['Servers'][$i]['auth_type']     = 'cookie';
注意q里如果讄为config请在下面讄用户名和密码Q例如:(x)
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user-----MySQLq接用户
$cfg['Servers'][$i]['password']      = 'zuozhan.net';  
打开览器,输入Q?a href="http://localhost/phpMyAdmin/">http://localhost/phpMyAdmin/ Q若 IIS ?MySQL 均已启动Q输入用户ROOT密码zuozhan.net卛_览数据库内宏V?br>phpMyAdmin 的具体功能,h慢熟(zhn),q里不再赘述?br>x所有安装完毕?/p>

]]>
php 上传囄http://www.aygfsteel.com/hayun/articles/php3.html?/dc:creator>?/author>Thu, 08 Feb 2007 09:37:00 GMThttp://www.aygfsteel.com/hayun/articles/php3.htmlhttp://www.aygfsteel.com/hayun/comments/98832.htmlhttp://www.aygfsteel.com/hayun/articles/php3.html#Feedback0http://www.aygfsteel.com/hayun/comments/commentRss/98832.htmlhttp://www.aygfsteel.com/hayun/services/trackbacks/98832.html
upload.php 文g代码

<form enctype="multipart/form-data" action="readimg.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="100000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>


readimg.php 文g代码
<?php
if(is_array($HTTP_POST_FILES)){
$upfile = $HTTP_POST_FILES[userfile][tmp_name];
$upfile_name = $HTTP_POST_FILES[userfile][name];
}
$path_translated = "upload/";      //上传文g?br />$UpLoadPath = addslashes(dirname($path_translated))."/upload/";
$FileName = $UpLoadPath."$upfile_name";      //$upfile_name是上传的文件名
$file_name = $up_load_path."$upfile_name";
echo $upfile;
echo $file_name;
if($upfile!="none" && $upfile!="" && $upfile_name!=""){
copy($upfile,$FileName);
}
echo $file_name;
?>


]]>
php q接Accesshttp://www.aygfsteel.com/hayun/articles/php2.html?/dc:creator>?/author>Thu, 08 Feb 2007 09:25:00 GMThttp://www.aygfsteel.com/hayun/articles/php2.htmlhttp://www.aygfsteel.com/hayun/comments/98824.htmlhttp://www.aygfsteel.com/hayun/articles/php2.html#Feedback0http://www.aygfsteel.com/hayun/comments/commentRss/98824.htmlhttp://www.aygfsteel.com/hayun/services/trackbacks/98824.html <?php
  $con= new com("adodb.connection");
  $con->open("Driver=Microsoft Access Driver (*.mdb);DBQ=".realpath("data.mdb"));
  $rs=new com("adodb.recordset");
  $sql="select * from product";
  $rs->Open($sql,$con,1,3);
  while(!$rs->EOF){
  echo $rs->Fields["pname"]->value;
  echo "<BR>";
  $rs->Movenext();
  }
   $rs->close();
?>

]]>
php q接mysql 数据?/title><link>http://www.aygfsteel.com/hayun/articles/php1.html</link><dc:creator>?/dc:creator><author>?/author><pubDate>Thu, 08 Feb 2007 09:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/hayun/articles/php1.html</guid><wfw:comment>http://www.aygfsteel.com/hayun/comments/98823.html</wfw:comment><comments>http://www.aygfsteel.com/hayun/articles/php1.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hayun/comments/commentRss/98823.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hayun/services/trackbacks/98823.html</trackback:ping><description><![CDATA[ <strong> <font color="#ff0000"><?php</font> </strong> <br />  $mysql_server_name='localhost';<br />  $mysql_username='root';<br />  $mysql_password='java';<br />  $mysql_database='myDB';<br />  $conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password,mysql_database);<br />  mysql_select_db($mysql_database,$conn);<br />  $sql="select * from product";<br />  mysql_query("set names 'gb2312'");<br />  $result=mysql_query($sql,$conn);<br />  while($myrow=mysql_fetch_row($result)){<br />  echo $myrow[1];<br />  }<br /><strong><font color="#ff0000">  ?></font></strong><img src ="http://www.aygfsteel.com/hayun/aggbug/98823.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hayun/" target="_blank">?/a> 2007-02-08 17:22 <a href="http://www.aygfsteel.com/hayun/articles/php1.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ī񹤿</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ҵ</a>| <a href="http://" target="_blank">˻</a>| <a href="http://" target="_blank">ױ</a>| <a href="http://" target="_blank">ϲ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¸</a>| <a href="http://" target="_blank">ϻ</a>| <a href="http://" target="_blank">ӱ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ղ</a>| <a href="http://" target="_blank">³ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ؼ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӣ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">µ</a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank">ͭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ʊ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>