McJanis Posted January 24, 2007 Report Posted January 24, 2007 Kā var ielikt php skriptus iekš HTML ?
Val Posted January 24, 2007 Report Posted January 24, 2007 <!-- html kods //--> <?php //te nāk tavs php ?> <!-- atkal html//-->
andrisp Posted January 24, 2007 Report Posted January 24, 2007 Un neaizmirsti, ka faila nosaukumam jābūt ar paplašinājumu .php
andrisp Posted January 24, 2007 Report Posted January 24, 2007 Varbūt tāpēc, ka php komentus sāk ar // ? Bet ja nopietni - kas tur slikts, ka pieturas pie smuki noformētiem piemēriem ?
bubu Posted January 24, 2007 Report Posted January 24, 2007 Jā, vai ne.. php komentus SĀK ar //, bet html komentus JĀBEIDZ ar //. Tas ir smuki noformēts? :)
Val Posted January 24, 2007 Report Posted January 24, 2007 Kāda vaina <!-- wtf //--> komentāra blokam?
Stopp Posted January 24, 2007 Report Posted January 24, 2007 html komentus JĀBEIDZ ar //Kopš kura laika? Iz w3.org: HTML comments have the following syntax: <!-- this is a comment --> <!-- and so is this one, which occupies more than one line -->
bubu Posted January 24, 2007 Report Posted January 24, 2007 Tas nebija domāts, ka tā IR jādara. Tas bija domāts uz andrisp teikto - tipa, ka vai viņš uzskata, ka tā ir jādomā?
Val Posted January 24, 2007 Report Posted January 24, 2007 laikam sapratu, ka jezga sākās manis dēļ. Vainīgas laikam ir dalīšanas zīmes: <!-- vienalga //--> Kāpēc rakstu? - pieradums/atkarība :)
andrisp Posted January 25, 2007 Report Posted January 25, 2007 Val, tā arī es domāju - Vaj - kā no vārda "Vai". :)
Recommended Posts