What format is this ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a HTML file with these snipppets (from a system using XOOPS):

<div style="margin:3px; padding: 3px;">
<{if $comment_mode == "flat"}>
 <{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
 <{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
 <{include file="db:system_comments_nest.html"}>

It seems the PHP codes are embedded in a HTML file (please note, with HTML

How does the browser process this HTML file, or is it specific to XOOPS ?


Re: What format is this ?

Quoted text here. Click to load it

Most important, you should understand that THIS is a contradiction. No
browser will ever process PHP, this is always done by the server.

Your snippet can't be processed by the PHP interpreter. It must be some
syntax for a template processor.

Regards, Felix

 web:   http://palmen-it.de/ |             http://palmen-it.de/pub.txt
 my open source projects:     |   Fingerprint: ED9B 62D0 BE39 32F9 2488
 http://palmen-it.de/?pg=pro +                5D0C 8177 9D80 5ECF F683

Re: What format is this ?

El 09/08/2010 23:49, sl@exabyte escribió/wrote:
Quoted text here. Click to load it

I see no PHP code here. PHP must be quoted with one of the supported tags:


Quoted text here. Click to load it

PHP is a server-side language so browsers do not even get to see the
source code. Also, the PHP interpreter does not care about file
extensions: it will parse whatever file you feed it with. Last but not
least, all decent CMS use a template engine. From the sample you post,
XOOPS appears to be using the Smarty template engine though I cannot
really tell for sure (their documentation area only displays spam...).

-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com

Re: What format is this ?

Quoted text here. Click to load it

I checked out Samrty template just now, I think I have a better idea now.

Site Timeline