实战突击PHP项目开发案例整合光盘使用说明.docx
《实战突击PHP项目开发案例整合光盘使用说明.docx》由会员分享,可在线阅读,更多相关《实战突击PHP项目开发案例整合光盘使用说明.docx(8页珍藏版)》请在冰豆网上搜索。
实战突击PHP项目开发案例整合光盘使用说明
实战突击:
PHP项目开发案例整合光盘使用说明
《实战突击:
PHP项目开发案例整合》
光盘内容框架
本书附带光盘内容包括本书源程序、教学录像等,完整光盘内容框架如图1所示。
图1光盘内容框架图
吉林省明日科技有限公司
如何使用本书源程序
1、开发及运行环境
本书源程序都是在WindowsServer2003下开发的,程序测试环境为WindowsServer
2003。
用户在WindowsServer2003或WindowsXP下正确配置程序所需的运行环境,都可以使用本书中的源程序。
软件开发平台如下:
服务器端:
操作系统:
Windows2003Server/Linux(推荐)。
服务器:
Apache/2.2.8(Win32)
PHP软件:
PHPVersion5.2.6
数据库:
MySQL5.0.51
MySQL图形化管理软件:
phpMyAdmin-2.10.3
开发工具:
Dreamweaver8。
浏览器:
IE6.0及以上版本。
分辨率:
最佳效果1024×768像素。
客户端:
浏览器:
推荐IE6.0及以上版本。
分辨率:
最佳效果1024×768像素。
2、源程序使用方法
(1)使用本书中源程序时,请将源程序文件夹下的所有文件拷贝到计算机硬盘上,并去掉所有文件的只读属性。
(2)在系统上安装PHP、MySQL、Apache、phpmyadmin或直接安装AppServ。
(3)数据库文件存储于源程序下的data文件夹中。
使用MySQL数据库、SQLServer2000数据库需要附加数据库。
3、附加MySQL数据库
将data文件夹中的数据库文件夹拷贝到AppServ安装路径下的AppServ\MySQL\data文件夹中,完成附加MySQL数据库的操作。
4、附加SQLServer2000数据库
下面以mr\08为例,讲解SQLServer数据库的附加方法。
(1)将mr\08\data文件夹下扩展名为“.MDF”和“.LDF”的两个文件拷贝到SQLServer2000安装路径下的MSSQL/Data目录下。
(2)打开SQLServer2000中的“企业管理器”,然后展开本地服务器,在“数据库”数据项上单击鼠标右键,在弹出的快捷菜单中选择“所有任务”/“附加数据库”菜单项,如图2所示。
ItAAAASAClosetothedesiredsolutionwasprepared,andthenusethereferencematerial(oranothermaterialstandard)todete–2–rmineitsexactconcentration.Thisdeterminesitsexactconcentrationiscalledcalibration.Forexample,forthepreparationof0.1mol•L-1HClstandardsolution,firstwithacertainamountofconcentratedHCldilutedwithwater,mixedconcentrationisabout0.1mol•L-1indilutesolution,andthenusetheanhydrousNa2CO3benchmarksolutiontitrationaccuratelyweighthematerialuntilbothquantitativeresponsefully,andthenconsumedinthetitrationofaqueoussolutionofHClvolumeandqualityofanhydrousNa2CO3,calculatetheexactconcentrationoftheHClsolution.Mostaccurateconcentrationsofthestandardsolutionaredeterminedbycalibrationofthemethod.Constantcomponentinthedeterminationofstandardsolutionconcentrationrangeof0.01mol•L-1-1mol•L-1,typicallyaccordingtothecomponentstobetestedtoselecttheheightofthesizeofstandardsolutionconcentration.Inordertoimprovetheaccuracyofcalibration,calibrationshouldpayattentiontothefollowingpoints:
?
determinationofcalibrationshouldbeparallel3-4,repeatedatleastthreetimes,andcalledfordeterminationoftherelativedeviationislessthan0.2%.?
inordertoreducemeasurementerror,weighingthebaselineamountofsubstanceshouldnotbetoofew,weighingatleast0.2Gabove;sametitrationattheendconsumptionofstandardsolutionsortoosmallinsize,thebestis20mL.Cpreparationofcalibrationsolutionsanduseliquor,suchasglassware,suchasvolumetricflasksandpipettes,wherenecessary,correctedvolume,andconsideringtheeffectoftemperature.DcalibrationgoodofstandardOperatedbystocksolutionwaspreparedsolution,inprincipleonlybedilutedonce,ifnecessary,dilutethesecondary.Dilutionoftoomanyaccumulatederroristoolarge,affecttheaccuracyoftheresults.2.calibrationcannotbedirectlymadeaccurateconcentrationsofthestandardsolution,firstsolutionwasprepared,andthenselectthebasematerialcalibration.Dothetitrationwithacidandalkalisolution,itisusuallypreparedwithabout0.1mol•TheconcentrationofL-1.Ofsolidacidandalkalisolutionpreparedfromoriginal,generallyonlyaccurateto1~2significantfigures,itcanbegraduatedcylindersmeasuringliquidsorsolidreagentsweighinthescales,addthesolvent(water),graduatedcylinderormeasuringcupamounts.Butinthewholeprocessofcalibrationsolution,everythingisverystrictandaccurate.Weighingstandardsubstancesrequirestheuseofanalyticalbalance,accuratetofourdigitsafterthedecimalpoint.Volumecalibrationsolution,ifitweretoparticipateintheconcentrationarecalculatedusingvolumetricflasks,pipettes,buretsaccurateoperation,notsloppy.(B)thegeneralsolutionpreparationandpreservationmethodsof1:
1(or1+1),1:
2(1+2)volumeisexpressedasconcentration.Forexample,1:
1solutionofH2SO4,theoriginalconcentratedH2SO4volume1volume,mixwith1volumeofwater.Andas1:
3HCl,theoriginalvolume1volumehydrochloricacidandthreevolumesofwaterandmix.Preparationofsolution,accordingtotherequirementsontheaccuracyofsolutionconcentrationshouldbedeterminedonthebalanceattheleveloftheweighing;recordshouldbewrittentoseveralsignificantfigures;thepreparedsolutionchoosewhatkindofvessel.Thataccurate,itshouldbeverystricttolerancescanbelessstringent.The"quantity"concept
吉林省明日科技有限公司
图2附加数据库
(3)将弹出“附加数据库”对话框中选择刚拷贝过去的数据库文件(.MDF文件),单
击【确定】按钮,如图3所示。
图3选择所要附加的数据库
(4)单击【确定】按钮,弹出如图4所示的提示框。
图4系统提示
–3–
吉林省明日科技有限公司
(5)单击【确定】按钮,完成附加数据库操作。
5、将程序发布到AppServ下
(1)将实例文件夹拷贝到AppServ安装路径下www文件夹中,如图5所示。
图5拷贝路径
(2)打开IE浏览器,在地址栏中输入127.0.0.1/01,即可运行程序。
注意:
1、“127.0.0.1”的默认端口号为“80”~在安装Apache服务器时如果端口号采用的不是默认设置~而是用户自定义的,例如:
88,~那么需要在地址栏中输入“127.0.0.1:
88/”~即可正确运行程序。
2、本光盘涉及到Smarty的第三方控件~由于不是我公司自主开发的~没有提供~需要读者自行下载。
将拷到对应的文件夹下,如图6所示,~才可以运行程序~否则程序会运行出错。
ItAAAASAClosetothedesiredsolutionwasprepared,andthenusethereferencematerial(oranothermaterialstandard)todete–4–rmineitsexactconcentration.Thisdeterminesitsexactconcentrationiscalledcalibration.Forexample,forthepreparationof0.1mol•L-1HClstandardsolution,firstwithacertainamountofconcentratedHCldilutedwithwater,mixedconcentrationisabout0.1mol•L-1indilutesolution,andthenusetheanhydrousNa2CO3benchmarksolutiontitrationaccuratelyweighthematerialuntilbothquantitativeresponsefully,andthenconsumedinthetitrationofaqueoussolutionofHClvolumeandqualityofanhydrousNa2CO3,calculatetheexactconcentrationoftheHClsolution.Mostaccurateconcentrationsofthestandardsolutionaredeterminedbycalibrationofthemethod.Constantcomponentinthedeterminationofstandardsolutionconcentrationrangeof0.01mol•L-1-1mol•L-1,typicallyaccordingtothecomponentstobetestedtoselecttheheightofthesizeofstandardsolutionconcentration.Inordertoimprovetheaccuracyofcalibration,calibrationshouldpayattentiontothefollowingpoints:
?
determinationofcalibrationshouldbeparallel3-4,repeatedatleastthreetimes,andcalledfordeterminationoftherelativedeviationislessthan0.2%.?
inordertoreducemeasurementerror,weighingthebaselineamountofsubstanceshouldnotbetoofew,weighingatleast0.2Gabove;sametitrationattheendconsumptionofstandardsolutionsortoosmallinsize,thebestis20mL.Cpreparationofcalibrationsolutionsanduseliquor,suchasglassware,suchasvolumetricflasksandpipettes,wherenecessary,correctedvolume,andconsideringtheeffectoftemperature.DcalibrationgoodofstandardOperatedbystocksolutionwaspreparedsolution,inprincipleonlybedilutedonce,ifnecessary,dilutethesecondary.Dilutionoftoomanyaccumulatederroristoolarge,affecttheaccuracyoftheresults.2.calibrationcannotbedirectlymadeaccurateconcentrationsofthestandardsolution,firstsolutionwasprepared,andthenselectthebasematerialcalibration.Dothetitrationwithacidandalkalisolution,itisusuallypreparedwithabout0.1mol•TheconcentrationofL-1.Ofsolidacidandalkalisolutionpreparedfromoriginal,generallyonlyaccurateto1~2significantfigures,itcanbegraduatedcylindersmeasuringliquidsorsolidreagentsweighinthescales,addthesolvent(water),graduatedcylinderormeasuringcupamounts.Butinthewholeprocessofcalibrationsolution,everythingisverystrictandaccurate.Weighingstandardsubstancesrequirestheuseofanalyticalbalance,accuratetofourdigitsafterthedecimalpoint.Volumecalibrationsolution,ifitweretoparticipateintheconcentrationarecalculatedusingvolumetricflasks,pipettes,buretsaccurateoperation,notsloppy.(B)thegeneralsolutionpreparationandpreservationmethodsof1:
1(or1+1),1:
2(1+2)volumeisexpressedasconcentration.Forexample,1:
1solutionofH2SO4,theoriginalconcentratedH2SO4volume1volume,mixwith1volumeofwater.Andas1:
3HCl,theoriginalvolume1volumehydrochloricacidandthreevolumesofwaterandmix.Preparationofsolution,accordingtotherequirementsontheaccuracyofsolutionconcentrationshouldbedeterminedonthebalanceattheleveloftheweighing;recordshouldbewrittentoseveralsignificantfigures;thepreparedsolutionchoosewhatkindofvessel.Thataccurate,itshouldbeverystricttolerancescanbelessstringent.The"quantity"concept
吉林省明日科技有限公司
图6
3、本光盘涉及到jpgraph.的第三方控件~由于不是我公司自主开发的~没有提供~需要读者自行下载。
将拷到对应的文件夹下,如图7所示,~才可以运行程序~否则程序会运行出错。
图7
4、本光盘涉及到jquery-1.4.2的第三方控件~由于不是我公司自主开发的~没有提供~需要读者自行下载。
将拷到对应的文件夹下,如图8所示,~才可以运行程序~否则程序会运行出错。
图8
本光盘涉及到zend的第三方控件,由于不是我公司自主开发的,没有提供,需要读者自行下载。
将拷到对应的文件夹下(如图90所示),才可以运行程序,否则程序会运行出错。
图9
5、本书源程序中使用到MySQL数据库~其中数据库的用户名为:
root~密码:
111。
本书中的数据库为SQL2000数据库~不能用SQL2005数据库附加。
6、如果读者在IE8浏览器下运行个别程序时出现页面错位~是由于IE浏览器的问题~读者需将浏览器的兼容性设置一下即可。
选择IE8浏览器上的“工具”~通过设置“兼容性视图”即可~设置完成以后~将不会出现上述问题。
–5–
吉林省明日科技有限公司
声明:
尽管我们已经花费了巨大的精力,但是在个别字句上,可能仍存在错漏字、不统一
的现象,但是不会影响到学习。
有关本书的技术,我们诚挚地欢迎读者朋友和我们一起交流。
=================================================================
感谢读者朋友对明日科技的支持,如果您对图书中的讲解及光盘源码有任何问题,可以
直接登录上的论坛进行发贴,把您的问题详细的说明一下,我们的
技术人员会在那里给您回复~如果您对编程词典软件感兴趣,请登录
详细查看,可直接与在线客服交流。
ItAAAASAClosetothedesiredsolutionwasprepared,andthenusethereferencematerial(oranothermaterialstandard)todete–6–rmineitsexactconcentration.Thisdeterminesitsexactconcentrationiscalledcalibration.Forexample,forthepreparationof0.1mol•L-1HClstandardsolution,firstwithacertainamountofconcentratedHCldilutedwithwater,mixed