Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Matthew Carter Newsgroups: comp.lang.php Subject: Re: PHP boilerplate to appear at the top of any program Date: Wed, 30 Dec 2015 22:14:13 -0500 Organization: Ahungry (http://ahungry.com) Lines: 37 Message-ID: <87wprvcnsq.fsf@ahungry.com> References: <2838299.zdqeYZrqYU@PointedEars.de> <1473248.ziGLShfuNh@PointedEars.de> <5131195.4d26jNU0Ms@PointedEars.de> <1535700.EMr0ZOzjxF@PointedEars.de> <6olgy.31399$b8.17906@fx29.iad> <5683B141.5080909@arnowelzel.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="7c986cd4736462de309a749b207746fe"; logging-data="14181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180rZwtkB/OgKKnjv4eVqR9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:ACiJQq05JsC0o/jbus/b+GEe+Ig= sha1:DuHNYo1MOFlmrS3LCOoB4Nf7OKw= Xref: csiph.com comp.lang.php:16021 Richard Damon writes: > On 12/30/15 3:18 PM, Jerry Stuckle wrote: >> >> Yes, I can. The latest I have is in Drupal, where adding PHP code to a >> page places that code in the database. The code is then exec()'d when >> it comes out. I have made extensive use of it in a couple of sites >> where I need to access an external resource in a couple of pages, but >> not enough to require a module. The same is true in WordPress and Joomla. >> >> > > In Drupal, to add PHP code to a page via the database, you need to > turn on the 'PHP' module. > > As described in the documentation > https://www.drupal.org/documentation/modules/php > there are major concerns about this, and would hardly be considered > 'standard' procedure. > > Putting PHP code in the database is possible, but it not the > 'standard' way to use the CMS. Developers will almost always create a > custom module (or other points in the code of the site itself) to > inject PHP code into a site (it really isn't hard), and the final > users/maintainter tend to focus on 'content' (the C in CMS). Jerry is just a troll, whose main insult is calling other people trolls, I wouldn't even bother responding (I got caught up in a few in the past). If you see someone labelled as a troll by Jerry, chances are they are a pretty knowledgeable and useful contributor to the newsgroup (PointedEars, Arno, Gregor etc.). -- Matthew Carter (m@ahungry.com) http://ahungry.com