Execute php

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Andrew_Softina
Posts: 4
Joined: Mon 18. Apr 2011, 14:42
Location: Ukraine, Kharkiv
Contact:

Execute php

Post by Andrew_Softina »

Hello!
I'm new to wcms.
I understand how to add new articles, content. But I want to execute for example

Code: Select all

<?php
echo date("Y/m/d") ;
?> 
Is it possible?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Execute php

Post by flip-flop »

Hi,

yes it is. Have a look: [PHP]echo date("Y/m/d");[/PHP].

But in this case the better solution is the TAG: {DATE_SHORT} corresponding to the setting in "config/phpwcms/conf.template_default.php" e.g.

Code: Select all

$template_default['date']['short']			= 'Y/m/d';      // (2003/12/25)
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Andrew_Softina
Posts: 4
Joined: Mon 18. Apr 2011, 14:42
Location: Ukraine, Kharkiv
Contact:

Re: Execute php

Post by Andrew_Softina »

flip-flop wrote:Hi,

yes it is. Have a look: [PHP]echo date("Y/m/d");[/PHP].

But in this case the better solution is the TAG: {DATE_SHORT} corresponding to the setting in "config/phpwcms/conf.template_default.php" e.g.

Code: Select all

$template_default['date']['short']			= 'Y/m/d';      // (2003/12/25)
Knut
Link is greate! Thanks a lot!
Post Reply