DreamweaverDeveloper'sInstantTroubleshooterRachelAndrewGarethDownes-PowellNancyGillKevinMarshallDrewMclellanApressDreamweaverDeveloper'slnstantTroubleshooter2003RachelAndrew,GarethDownes-Powell,NancyGill,KevinMarshall,DrewMclellanOriginallypublishedbyApressin2003Alirightsreserved.
Nopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisher.
ISBN978-1-59059-233-5ISBN978-1-4302-0806-8(eBook)DOI10.
1007/978-1-4302-0806-8Trademarkednamesmayappearinthisbook.
Ratherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weusethenamesonlyinaneditorialtashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademark.
TheDreamweaverMXlogoisatrademarkofMacromedia,lnc.
andisusedwithpermission.
Theinformationinthisbookisdistributedonan"asis"basis,withoutwarranty.
Althougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthiswork.
CreditsEditorialBoardDanApplemanCraigBerryGaryCornellTonyDavisStevenRycroftJulianSkinnerMartinStreicherJimSumserKarenWattersonGavinWrayJohnZukowskiTechnicalReviewersRayWestDavidPowersDaniloCelieMidJamieShefaliKulkarniCommunicationsManagerBruceLawsonProofreaderAgnesWiggersCommissioningEditorSimonMackieTechnicalEditorsDanWalkerMattMachellSimonMackieDaveMercerAmandaKayProjectManagersBeckieStonesSofiaMarchantGraphicEditorPipWonsonCoverDesignerKurtKramesCopyEditorNicoleLeClercIndexerBillJohncocksAbouttheAuthorsSolveDreamweaver'smostfrequentproblemswiththehelpofrenownedprofessionals.
RachelAndrewRachelAndrewrunsherownwebsolutionscompanyintheUK,edgeofmyseat.
com,thecompanywebsitealsobeinghometovarious"webstandards"-focusedarticlesandDreamweaverextensions.
RachelisamemberoftheWebStandardsProjectontheDreamweaverTaskForce,andhopestoencouragebestpracticesinthesupportanduseofW3CStandardsinDreamweaver.
Whennotwritingcode,orwritingaboutwritingcode,Rachelspendstimewithherdaughter,triestoencouragepeopletouseDebianGNU/Linux,studieswiththeOpenUniversity,andenjoysanicepintofbeer.
Thanksmustgotoeveryoneatglasshausformakingtheprocessofworkingonthisbookenjoyable;toDrewMcLellanforhisconstantloveandsupport;andtomydaughterBethany,whothinksthatallmummiesarepermanentlyattachedtoacomputer.
Thankyou.
GarethDownes-PowellGarethhasbeenworkinginthecomputerindustryforthelast12years,primarilybuildingandrepairingPCs,andwritingcustomdatabaseapplications.
HebranchedoutontotheInternet6yearsago,andstartedcreatingwebsitesandapplications.
Thisisnowhismainareaofexpertise,andhespecializesinwritingcustomPHPsitesandapplications,utilizingMySQLback-enddatabases.
GarethisapartnerinBuzzinet,http://www.
buzzinet.
co.
uk,anInternetcompanyspecializinginbusinesssolutions,andofferingprofessionalwebdesignandhostingservices.
ThroughhisworkheusesawiderangeofMacromediaproducts,fromDreamweaverMXthroughtoFlashMXandDirectorforcustomInternetandmultimediaapplications.
Recentlyhestartedhttp://www.
dreamweavermxsupport.
com/asawayofprovidingsupportforthewholeMacromediaDreamweaverMXcommunity,andheregularlyaddsnewtutorialsandguidestothisrapidlyexpandingsite,aswellasextensionssuchasthePHPLoginSLJiteforDreamweaverMX.
Garethenjoyskeepingupwiththelatestdevelopments,andhehasbeenprovidingsupporttomanyuserstohelpthemuseDreamweaverMXwithPHP.
HeactivelypromotesLinuxserversrunningPHPandtheMySQLDatabaseSystem,andhasnowcowrittenanumberofbooks,andhascontributedarticlestoanumberofmagazinesonafreelancebasis.
Thankstoallthestaffatglasshausfortheirhelpincreatingthisbook.
NancyGillKevinMarshallNancyGillistheownerofWebWishProductions,awebdesignbusinessshefoundedin1996afterbeingturnedontotheInternetataseminardesignedtogetcustomersinterestedinamassmall.
WebWishProductionstargetsmostlysmall-tomid-sizedbusinessesandhasworkedwithcompaniesineveryfieldfromagriculturetoentertainmentandmedia.
Currently,about90%ofthecompany'sbusinessconsistsofdata-drivensites.
Afterhand-codinginNotepadfornearly3years,NancydiscoveredMacromediaandDreamweaverin1999andneverlookedback.
ShebecameinvolvedintheMacromediaforumsinlate2000andhasbeenamemberofTeamMacromediasinceDecemberof2001.
NancyhasalsoparticipatedinanumberofbetaprogramsforMacromediaoverthepastyearandisexcitedaboutthenewMXlineofproducts.
KevinMarshalllivesinPerth,Scotland.
HeisaseniorprogrammerwithWebXeL.
comLtdandisalsoITmanagerwithSpectraglassLtd;bothcompaniesarebasedinPerth,Scotland.
Hehasbeeninvolvedincomputerprogrammingsince1990,web-basedprogrammingusingASPsince1997,andhasbeenbuildingASP.
NETapplicationssinceASP.
NETBeta2wasreleasedin2001.
HehasbeenanavidDreamweaverusersinceversion1waslaunchedandwiththereleaseofMXhasmovedintodevelopingextensions.
WebXeL.
comLtdlaunchedanewwebsiteinNovember2002dedicatedtothedevelopmentoffreeandcommercialDreamweaverMXextensionsforASP.
NET.
Thesitecanbefoundathttp://www.
webxel-dw.
co.
uk.
KevinisalsoaregularcontributortotheMacromedianewsgroups,providingadviceandassistancetootherDreamweaverusers.
Iwouldliketothankmywife,Abby,andmyparents,ElliottandPatricia,fortheircontinuedsupport.
IwouldalsoliketothankLawrenceMcNamaraofWebXel.
comLtd.
DrewMclellanDrewMclellanhasbeeninvolvedinwebdesignanddevelopmentsince1996.
Startingoriginallyasahand-coder,DrewquicklysawthegreatproductivitybenefitsthatcouldbebroughtbyaVisualEditorwiththearrivalofDreamweaver1.
2.
Sincethen,DrewhasbeenpushingtheboundariesofDreamweaverthroughitssolidHTML-basedmethodologyandpowerfulextensiblearchitecture.
WithliterallytensofthousandsofhisDreamweaverExtensionsinusearoundtheglobe,DrewhasestablishedafirmseatingwithinthecenteroftheonlineDreamweavercommunityandcanbefoundonadailybasisteachingandaidingfellowdevelopersinMacromedia'snewsforums.
Drew'sonlinetutorialsfromhisDreamweaverFever.
comwebsitearerecognizedasoneofthemorevaluableDreamweaverresourcesavailable,duetotheirclearandnonassuminguseoflanguage.
DrewalsohelpsoutattheWebStandardsProject(http://www.
webstandards.
org/)asaDreamweaverexpert,focusingontheissuessurroundingwebstandardsinMacromedia'sflagshipHTMLeditor.
AsaTeamMacromediavolunteer,DrewisacommittedDreamweaveruserandenjoysnothingmorethanbeingabletosharehisknowledgeandexperienceoftheproductwithfellowdevelopers.
Drewhasawideknowledgeofbothwebdesignanddevelopment,andiscurrentlyworkingforadesign,marketing,andITagencyinLondon,UK.
Introduction1Chapter1:SettingUpSiteDefinitions5BeforeYouStartBasicSiteDefinition.
BasicHTMLSite.
7DynamicSite8AdvancedSiteDefinition11LocalInfo11RemoteInfo11TestingServer.
12Cloaking13DesignNotes13SiteMapLayout14FileViewColumns14Contribute15TheEditSitesWindow.
15BringingItAllTogether15TopQuestions.
16Summary18Chapter2:DatabasesandConnections21UnderstandingDatabases21ChoosingaDatabase.
22MicrosoftAccess22SOLServer.
23Oracle23PostgreSQL24OtherDatabases24DesigningYourDatabase.
25AnExampleDatabase25CreatingtheConnection.
.
-27ASP.
27ASP.
NET30ColdFusion31GettingDatafromtheDatabase32FrequentlyAskedQuestlons.
34Summary35Chapter3:SettingUpliSforHTML,ASP,orPHP37InstallingandSettingUpliS37CheckingtheInstallation39AdministeringaBasicWebSite40viiiCheckingThatWebPagesAreBeingServedCorrectly42TroubleshootingliSInstallProblems44InstallingPHPforliS45DownloadingPHP45InstallingPHP46AddingPHPtoliS48TestingPHPPages.
52InstallingPHPExtensions53TroubleshootingPHP54Summary66Chapter4:ApacheandWindows59Apache.
59WhichVersionofApache60Security.
60DownloadingApache61InstallingApache61Apache'sConfigurationFiles65CheckingtheApacheInstallation68TroubleshootingGuide69ApacheModules.
70InstallingPHPwithApacheonWlndows.
70DownloadingPHP70InstallingPHP71ConfiguringApacheforPHP72ConfiguringPHP.
73RestartingApache75TestingApacheandPHP76ixTroubleshootingaPHPInstallation.
PHPExtensions77Summary78Chapter5:ApacheandPHPSetuponLinux81Linux82RecommendedSoftware82Telnet83Samba84Firewall85TheApacheWebServer85DownloadingApache85InstallingApache86ConfiguringApache91ControllingtheApacheServer93TestingApache94TroubleshootingtheApachelnstallation.
95ApacheModules.
96InstallingPHPintoApache96DownloadingPHP96ExtractingthePHPFile97CompilingPHPandConfiguringApache99ConfiguringApache100ConfiguringPHP102RestartingApache104TestingApacheandPHP105TroubleshootingthePHPInstallation106Summary107XChapter6:MySQLSetup109InstallingMySQLonWindows110DownloadingMySQL110InstallingMySQL110StartingtheMySQLServer112InstallingMySQLonLinux113DownloadingMySQL113InstallingMySQL114StartingandStoppingtheMySQLServer116MySQLFileLocations117MySQLServerSetupandConfiguration118SettingtheMySQLRootPassword119WorkingwithMySQL119WorkingwithUsers.
122FrequentlyAskedQuestions130Summary138Chapter7:CSS141WhyUseCSSforTextStylingInsteadofTags141SeparatingDocumentStructurefromPresentation141CSSToolsinDreamweaverMX.
146Preferences146TheCSSStylesPanel147ThePropertiesInspector148FrequentlyAskedQuestions.
148Summary161xiChapter8:Templates163HowTemplatesWork163LockedRegions163EditableRegions164AdvantagesandDisadvantagesofTemplates164CreatingaBasicTemplatePage164AddingTemplateFeatures165EditableRegions166CreatingaTemplateforDynamicPages174FrequentlyAskedQuestions.
175Summary177Chapter9:WebStandards179WhoSetstheStandards179DoesItTakeLongertoWorkwiththeStandards180WhyShouldIWorkwiththeStandards180Future-Proofing180Accessibility181EaseofDebugging181WorkingAsaTeam182CreatingStandards-CompliantDocumentsinDreamweaverMX182HTMLorXHTML182WhatIsaDOCTYPE186HowCanIConvertanHTMLDocumenttoXHTML191HowCanICheckThatMyDocumentIsStandards-Compliant192ValidatingWithinDreamweaver192ValidatingAttheW3CWebSite193xiiValidatingDynamicPages194StructuredMarkup194FrequentlyAskedQuestions.
197Summary199Chapter10:CreatingFlexibleLayouts201SizingUptheProblem201TheTroublewithResolution202WhyShouldtheLayoutStretch204Considerations205BuildingaStretchablePage209StylingtheBanner211StylingtheNavigation211StylingtheContent212FrequentlyAskedQuestions.
213Summary214Chapter11:TopPHPQuestions217WhyDon'tSessionVariablesWork217HowDoICheckThatSessionVariablesAreWorking218WhenDoIHavetoUsesession_start220HowDoIUploadaFileThroughtheBrowser220DisplayinganUploadedImage.
222HowDoIGetaListofFilesinaDirectory222E-mail.
223HowDoISendanE-mailAsHTML223xiiiHowDoISendaNewsletterwithPHP224HowDoIStopaScriptAfterTimingOutWhenSendingManyE-mails225DateandTimeProblems226HowDoIReadtheDateorTimefromtheServer226HowDoIConvertaDatetoandfromMySQLFormat226HowDoIFindtheLengthofTimeBetweenTwoDates228HowDoIFindaDate,xDays/MonthsNearsinthePastorFuture228CommonPHPErrors229ParseErrors229UndefinedIndexorVariable230HeadersAlreadySentErrors231HowDoIForceaFiletoDownloadRatherThanOpen232HowDoIFindtheDimensionsofanImage233HowDoICreateaRandomPassword234Summary235Chapter12:TopASPQuestions237xivHowDoIConnecttoaDatabaseWithoutaDSN237SoWhat'saConnectionString238HowDoIModifyMyConnection239HowDoIPreserveLineBreaksfromaTextarea240CanIPreventOffensiveLanguagefromBeingDisplayed241HowCanIRememberaVisitor'sName242HowDoICreateTableswithStripedRows244HowDoIGroupDatabyItsHeadings246SortingtheData246HowDoIE-mailtheResultsofMyForm248SettingUptheForm249CreatingtheE-mail250Summary252Chapter13:TopASP.
NETQuestions255HowDoIInstall·the.
NETFramework255WhatVersionShouldIInstall256WhatAretheSystemRequirements256HowCanIFixaBroken.
NETFrameworkInstallation257WhatDoestheError"AccessisDenied'some.
dll'"Mean257WhatIsaServerControl258What'stheDifferenceBetweenWebControlsandHTMLControls259WhatIsaUserControl260WhyDoesDreamweaverMXSometimesFailtoRenderServerControls260HowDoIEditaServerControl'sTagAfterItHasBeenInserted261WhatIsCode-Behind263CompiledAssemblies263DirectLinktotheCode-BehindFile263NamingYourCode-BehindFile263What'sweb.
conflg264HowDoIMakeMySiteUseItsOwnbinFolder264CanIUseDreamweaverMXandVisualStudio.
NETTogether266WhatProcessDoIUse267WhatArePostBackandVlewState268WhyMustSomeServerControlsBePlacedWithinaForm269XVEventsAPage'sLifeCycleWhat'sThatAbout270TheLifeCycleofaPage270Events271WhenDoIUseInsteadof272WhyDoestheSelectedItemofaDropDownListorListBoxGetLostonaPostBack273HowCanIInsertanItemintoaData-BoundDropDownListorListBox275HowDoIProgrammaticallySelectanIteminaDropDownListorListBox276What'stheDifferenceBetweenanMM:DataSetandaTrueDataSet.
.
.
.
278Summary279Index281
我们在选择虚拟主机和云服务器的时候,是不是经常有看到有的线路是BGP线路,比如前几天有看到服务商有国际BGP线路和国内BGP线路。这个BGP线路和其他服务线路有什么不同呢?所谓的BGP线路机房,就是在不同的运营商之间通过技术手段时间各个网络的兼容速度最佳,但是IP地址还是一个。正常情况下,我们看到的某个服务商提供的IP地址,在电信和联通移动速度是不同的,有的电信速度不错,有的是移动速度好。但是如果...
LOCVPS怎么样?LOCVPS是一家成立于2011年的稳定老牌国人商家,目前提供中国香港、韩国、美国、日本、新加坡、德国、荷兰等区域VPS服务器,所有机房Ping延迟低,国内速度优秀,非常适合建站和远程办公,所有机房Ping延迟低,国内速度优秀,非常适合做站。XEN架构产品的特点是小带宽无限流量、不超售!KVM架构是目前比较流行的虚拟化技术,大带宽,生态发展比较全面!所有大家可以根据自己业务需求...
青果云香港CN2_GIA主机测评青果云香港多线BGP网络,接入电信CN2 GIA等优质链路,测试IP:45.251.136.1青果网络QG.NET是一家高效多云管理服务商,拥有工信部颁发的全网云计算/CDN/IDC/ISP/IP-VPN等多项资质,是CNNIC/APNIC联盟的成员之一。青果云香港CN2_GIA主机性能分享下面和大家分享下。官方网站:点击进入CPU内存系统盘数据盘宽带ip价格购买地...
headersalreadysent为你推荐
http500网站打开显示500内部服务器错误,是什么原因?怎么解决?开启javascript开启 JavaScript,支付宝调整还款日支付宝调整花呗还款日,这个调整有没有对你造成什么影响?刚刚网新员工入职自我介绍怎么写?网站制作套餐怎样制作网站,制作网站要钱吗工具条工具栏不见了怎么办joomla安装MICROSOFT APPLOCALE 怎么安装织梦去版权dedecms模板上的版权怎么改成自己想要的版权服务器代维网站后台不能进入了网店制作如何做网店?
成都虚拟主机 虚拟主机排名 出租服务器 互联网域名管理办法 域名商 google镜像 56折 godaddy续费优惠码 双11抢红包攻略 一元域名 免费mysql 165邮箱 linux服务器维护 免费智能解析 支付宝扫码领红包 网站在线扫描 跟踪路由命令 河南移动梦网 秒杀品 七牛云存储 更多