Hello.
Please how I import php code, for example
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
to my contect? I use FCKeditor, but php don't work
Thanks
FCKeditor and php
FCKeditor and php
cmsimpleforum.com best CMSimple community!
Re: FCKeditor and php
You can use pure PHP only in the template.madar wrote:Hello.
Please how I import php code, for example
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
to my contect? I use FCKeditor, but php don't work
Thanks
To run PHP in the content, you have to use CMSimple Scripting http://www.cmsimple.com/?Installer%27s_ ... _Scripting.
The code below should work in the content:
Code: Select all
#CMSimple $output.= $_SERVER['REMOTE_ADDR'];#
A better solution for your example should be:
Code: Select all
<p>Your IP is: #CMSimple $output=preg_replace("/".chr(35)."CMSimple.*".chr(35)."/",$_SERVER['REMOTE_ADDR'],$c[$s]);# <br />
Content goes on here...</p>
http://cmsimpleforum.com/viewtopic.php?f=7&t=302
Holger
Re: FCKeditor and php
Holger,
you were faster than I was... I had that in mind, too...
it is not possible to enter plain code in the content without CMSimple Scripting
have a nice evening,
Connie
you were faster than I was... I had that in mind, too...
it is not possible to enter plain code in the content without CMSimple Scripting
have a nice evening,
Connie
|---
Connie Müller-Gödecke, http://www.webdeerns.de
Connie Müller-Gödecke, http://www.webdeerns.de