You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- MediaBox
- JCE Editor
- Can't echo with PHP on custom module
Hello!
I'm trying to print a simple date with php.
The code would be:
and the custom module has the "prepare content" enabled. I save the code on the editor view instead of code because if I do it on code it will change the php tags to a span tag and comment out my code.
JCE has php enabled on my profile.
site is http://www.zeta.com.pa and date should appear just after the email This email address is being protected from spambots. You need JavaScript enabled to view it.
I'm trying to print a simple date with php.
The code would be:
<?php echo date(); ?>
and the custom module has the "prepare content" enabled. I save the code on the editor view instead of code because if I do it on code it will change the php tags to a span tag and comment out my code.
JCE has php enabled on my profile.
site is http://www.zeta.com.pa and date should appear just after the email This email address is being protected from spambots. You need JavaScript enabled to view it.
PHP code cannot be executed inside content or module items. You need a special extension, like Regularlabs Sourcerer - https://www.regularlabs.com/extensions/sourcerer - to do this.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!