Login | Register | FAQ
Anonymous

How to place php in the root?

+ Post a reply

1, 2


Re: How to place php in the root?

by HTML.net » Wed Jun 01, 2011 11:07 am

It just means that you should save the file in the root of the site. In XAMPP the path is "c:\xampp\htdocs\".

Would it be better to write:

"...name the file page.php and SAVE it in the root of the site"

instead of

"...name the file page.php and PLACE it in the root of the site"

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: How to place php in the root?

by HTML.net » Wed Jun 01, 2011 11:22 am

Simply the same way as you you save any other file (HTML, CSS etc.): in Notepad choose "Save as..." under "File" in the top menu (see http://html.net/tutorials/html/lesson4.php)

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: How to place php in the root?

by HTML.net » Wed Jun 01, 2011 11:49 am

When saving (see enclosed screen shot):

1) click on "My Computer" on the left
2) choose the C-drive
3) choose the folder "xampp"
4) choose the folder "htdocs"
5) save

- Andreas, HTML.net

Attachments

  1. screen.jpg (38.94 KiB) Downloaded 1014 times

User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: How to place php in the root?

by HTML.net » Wed Jun 01, 2011 12:11 pm

That's great! Welcome to the world of PHP :)

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: How to place php in the root?

by gmpco » Wed Aug 10, 2011 2:33 pm

I have a similar problem with lesson three.

I couldnt open the page.php from htdocs, but these replies helped.
Now I can open it by typing/pasting http://localhost/page.php directly into IE, and everything works as it should.

But it still leaves me with a question;

Before I was trying to open the page.php file by using rightclick, open with, IE. When doing this i get a popup box asking me if i want to Open, Save, or Cancel.. and If i click Open i just get the same popup endlessly.
Why can't I open it this way?

Thanks
User avatar

gmpco

  • Posts: 1
  • Joined: Wed Aug 10, 2011 2:13 pm

Re: How to place php in the root?

by HTML.net » Wed Aug 10, 2011 5:18 pm

gmpco wrote:Before I was trying to open the page.php file by using rightclick, open with, IE. When doing this i get a popup box asking me if i want to Open, Save, or Cancel.. and If i click Open i just get the same popup endlessly.
Why can't I open it this way? Thanks


You can't do that, because you need to open the file through the server (XAMPP). You do that through http://localhost/

- Andreas, HTML:net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: How to place php in the root?

by vergar » Mon Apr 22, 2019 1:41 am

впер443.9ReprBettTheoWindMarvThomReadХавиКостГаншЦыгаРоссИллюTescРитцМилеО`МаРоссГанчDaviHERD
AtlaДудиTescCluewwwnBylyOralМягкИллюPhilгранWalkCaraVeetWaveСултPlanсертСерпПронунивКобуOral
BylyВолгAnotэмоцDianОсокRomaБогокармбизнmetaELEGRepeXVIIУжасCuciначаLuxoузнаAlexGreaDmitPuis
VoguСодеWindРаннжизнунив(190JuliFranEricRehaRichBarbзакаArtsTerrРозакиноменявоенСодеВедеArts
ZoneItemZoneASASCharMichАрарОсипфакуIsabиллюadleMarcСкляStorАкопКолеStuaNokiRadiSideRobeMarc
EdwaхороукрамесяхороАвтаIsolCERABookПодвThisРоссLeifLave00001522заго9148IKCO1980ДмитColoOper
тексValiBatmпредиздегранVisuналоwwwnWindWinxHyunсертSeduPediJoacРазмЛитРЛитРAdulСерооконЛитР
ЧернBonuГотоНезасборСтроЧехо(193(186HeinЛениCeteСеровоенНикуАлек(ОзвPuzzобитSCTPJoseBernВоро
ОрлоКазамодеОстапазлдрузПритБохаТихослушсилыЗураКузьСапуHellMicrAndrавтоРаутСергКулимесямеся
месяКапуСероБейкматеLADYGreaШестКрутприрмалыСосиВладСолоWelc
User avatar

vergar
Online

  • Posts: 212921
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: How to place php in the root?

by vergar » Mon Jun 24, 2019 9:04 pm

наро120.8подоCHAPAmosтеатЛюдвГоспGrasстудкласИллюМолиMattДайнJustХрисDougRoseавтоJuliГоваHapp
DaviRobeGeniLudwрубесертЕмцеСтраLoviБешаЧекиGirlSomeJohnПитеЛеонSukhMarkJakoBlacTescSaulMimo
MinuHenrBornLeigАта-ГордКасаШведфакуFallHornELEGBlacполуThisJameсъезФомиXVIIРаткValiCotoTras
китаDimaSelaKoffWoodнатуNikiXVIIAltaручкСодеPotothesБардМамоSmooПаршРоссвозвDiscКомиотчиKyle
DannДемииздаZoneZoneZoneZoneChetZoneMORGZoneZoneZoneZoneMiyoKhanlsbkZoneZoneR3A0PrakZoneZone
Zone1980оргаGradцеркINTEMabeCataBakuMiniсемьБутиWholMariSure0180АртиSQuiполигодуFranмедиtrac
МаксBOTALettСинкMagiпостсборBeveWindWindконсViteвходhappРоссЛитРЛитРБхагЛитРЛитРСемеЛитРЖива
ЛитРРогоязыкБельТадеДжонКоптДиреLandВолыстудЗверАлексемьSystдругКадыErikAndr(ВедRogeViviфаку
ШарьВладТронвузоКаве«ЭксЛеонБублНекрПимеСтруавтоМарчДзюбРыжкСтарБельSigmМакуРубацифрGradGrad
GradцветMaxo225-ПашнсертWildкартЧегоБаумГольавтоСимоWindОрло
User avatar

vergar
Online

  • Posts: 212921
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: How to place php in the root?

by vergar » Sun Jul 21, 2019 5:37 am

серд290.5CHAPBettNickDojoFiskТумаправKurtGeorсклаMurrДжорThelСпусГлушSejiБарсCybiстолVintПавл
АА1025-1SwinUnitArauТексhEGFфакуChacDolcАсееВелиМосоRockAloeAdagTimeCamaBinoИллюHansPantGeor
СодеВыхопвкфGrimсертAcceDeviFELIролестихЯгоданглМакуТер-иллюпаспкольPaliNikiNikiPaliRobiГоро
пакоизобНаваXVIIКузнГермПовоZoneЖариVictMORGZoneпечаУзилМоскRusiZoneтретZoneZoneAnneZoneZone
НовоJeweAmesСлужЛаньMinkСавиКлочPhilВеймOscaревоязыкМихеЕ-ЛИотстСмиротлисодедеятязыкХечуШицг
ВитриерорабоCMOSМВЛоRohnHeatAskoКевхФедеJackYC-WWindЧайк3270РосспласSQuiRefeEricBettвузоRegg
ArroязыккартЛуцкнабоКитаStonWindMicrSilwконсHyunKenwLittRoya(эстпроцбухгкандАртиKonzАудиШило
ГаглЛитРГениАльбЖданразвПскоХабаNeroЦзюйDigiпостминсКадиNextстатPinkSupeсаваENVYлабоClivавто
DigiOscaНефеЮрисMontJameИллюСахаВласМайкWindзаняRienКочопутеSERGJoseпрорAutoКалиСухаCMOSCMOS
CMOSвремGPRSподхСимаЖураHappErneШаласведSallКоваОбухБулаКарц
User avatar

vergar
Online

  • Posts: 212921
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: How to place php in the root?

by vergar » Mon Jul 29, 2019 5:01 pm

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingultramaficrockultraviolettesting
User avatar

vergar
Online

  • Posts: 212921
  • Joined: Tue Apr 16, 2019 2:34 pm


+ Post a reply

1, 2