Page 1 of 1

{PHP:my_external.php}

Posted: Thu 27. Nov 2003, 22:16
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?

Simple

Posted: Fri 28. Nov 2003, 16:36
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