{PHP:my_external.php}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

{PHP:my_external.php}

Post by frold »

What is this function and how to use it.. I don not understand this text...

Code: Select all

All output of "my_external.php" script will be inserted. This is very powerful. You can use any availabe content var of phpwcms for your script or connet to other external sources.
Sample: <?php echo PHP_VERSION." // date: ".date("Y-m-d"); ?> =
output: 4.3.3 // date: 2003-11-27
Can any one give an example of how to use it?
GHOST
Posts: 6
Joined: Fri 28. Nov 2003, 16:31

Simple

Post by GHOST »

Open Notepad save the file as myscript.php (into phpwcms root directory) type in:

<?php

echo "Hello World";

?>

Now open your template (within the administration interface) and place the
{PHP:myscript.php} Function somewhere in your template.

Now open the phpwcms frontend
Post Reply