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
justhost怎么样?justhost是一家俄罗斯主机商,2006年成立,提供各种主机服务,vps基于kvm,有HDD和SSD硬盘两种,特色是200Mbps不限流量(之前是100Mbps,现在升级为200Mbps)。下面是HDD硬盘的KVM VPS,性价比最高,此外还有SSD硬盘的KVM VPS,价格略高。支持Paypal付款。国内建议选择新西伯利亚或者莫斯科DataLine。支持Paypal付...
tmhhost可谓是相当熟悉国内网络情况(资质方面:ISP\ICP\工商齐备),专业售卖海外高端优质线路的云服务器和独立服务器,包括了:香港的三网cn2 gia、日本 cn2、日本软银云服务器、韩国CN2、美国三网cn2 gia 云服务器、美国 cn2 gia +200G高防的。另外还有国内云服务器:镇江BGP 大连BGP数据盘和系统盘分开,自带windows系统,支持支付宝付款和微信,简直就是专...
TmhHost 商家是一家成立于2019年的国人主机品牌。目前主营的是美国VPS以及美国、香港、韩国、菲律宾的独立服务器等,其中VPS业务涵盖香港CN2、香港NTT、美国CN2回程高防、美国CN2 GIA、日本软银、韩国cn2等,均为亚太中国直连优质线路,TmhHost提供全中文界面,支持支付宝付款。 TmhHost黑五优惠活动发布了,全场云服务器、独立服务器提供8折,另有充值返现、特价服务器促销...
headersalreadysent为你推荐
phpwindphpwind怎么用?免费么?请详细说明flashfxpflashfxp怎么用?destoondestoon有多少人用Destoon做站cisco2960配置Cisco2960是二层交换机,怎么可以进入配置界面进行配置。不是说二层交换机不需要配置吗?163yeah请问网易的163,126,yeah,VIP,188邮箱各有什么特点?申请支付宝账户申请支付宝账号注册ipad代理苹果官网购买ipad要几天结点cuteftp佛山海虹广东海虹药通电子商务有限公司怎么样?免费代理加盟怎么开免费的代理网店
美国免费主机 10t等于多少g shopex空间 免费名片模板 国内php空间 京东商城双十一活动 个人空间申请 权嘉云 165邮箱 cdn加速是什么 支付宝扫码领红包 购买国外空间 512mb 东莞主机托管 测速电信 如何登陆阿里云邮箱 阿里云邮箱怎么注册 新疆服务器 亿库 godaddy退款 更多