note 87955 added to language.basic-syntax.phpmode

From: Date: Fri, 02 Jan 2009 16:50:10 +0000
Subject: note 87955 added to language.basic-syntax.phpmode
Groups: php.notes 
Request: Send a blank email to php-notes+get-148754@lists.php.net to get a copy of this message
These methods are just messy. Short-opening tags and ASP-styled tags are not always enabled on servers. The <script language="php"></script> alternative is just out there. You should just use the traditional tag opening: <?php?> Coding islands, for example: <?php $me = 'Pyornide'; ?> <?=$me;?> is happy. <?php $me = strtoupper($me); ?> <?=$me;?> is happier. Lead to something along the lines of messy code. Writing your application like this can just prove to be more of an inconvenience when it comes to maintenance. If you have to deal chunks of HTML, then consider having a templating system do the job for you. It is a poor idea to rely on the coding islands method as a template system in any way, and for reasons listed above. ---- Server IP: 64.71.164.2 Probable Submitter: 68.173.205.18 ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.phpmode.php Edit -- https://master.php.net/note/edit/87955 Del: integrated -- https://master.php.net/note/delete/87955/integrated Del: useless -- https://master.php.net/note/delete/87955/useless Del: bad code -- https://master.php.net/note/delete/87955/bad+code Del: spam -- https://master.php.net/note/delete/87955/spam Del: non-english -- https://master.php.net/note/delete/87955/non-english Del: in docs -- https://master.php.net/note/delete/87955/in+docs Del: other reasons-- https://master.php.net/note/delete/87955 Reject -- https://master.php.net/note/reject/87955 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148754) next »