Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1610733.vASnu692iJ@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 24 May 2013 22:32 +0200 User-Agent: KNode/4.10.2 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 37 NNTP-Posting-Date: 24 May 2013 22:32:01 CEST NNTP-Posting-Host: f3feef9a.newsspool3.arcor-online.net X-Trace: DXC=l:;YQJ>R=X@^B]`=U:WelBMcF=Q^Z^V3H4Fo<]lROoRA8kF Jerry Stuckle wrote: >> On 5/24/2013 9:40 AM, Tim Streater wrote: >> > Personally I add: >> > >> > AddType application/x-httpd-php .phtml >> > >> > to the apache config file, and use that for files containing any PHP. >> > That way the PHP interpreter is only involved when a file actually has >> > PHP in it. >> > >> >> What's the difference between using .phtml and .php (other than the >> former is non-standard and will not work on all systems)? > > None, I don't suppose, but it was the standard where I used to work. I > just followed it. I use .php for scripts that *only* contain php. “.phtml” for *templates* is a quasi-standard *at least* since Zend Framework uses it. IIRC, Eclipse PDT and Zend Studio assign files with “.phtml” suffix the PHP Editor plugin as default. Using “.phtml” for anything other than templates is unwise. The convention probably stems from “.shtml” for SSI. > It's a shame that the universe doesn't use proper file metadata but as > we seem to be stuck using extensions they may as well mean something. ACK. PointedEars -- > If you get a bunch of authors […] that state the same "best practices" > in any programming language, then you can bet who is wrong or right... Not with javascript. Nonsense propagates like wildfire in this field. -- Richard Cornford, comp.lang.javascript, 2011-11-14