Including files without loosing my string
| From: | B�rd Tommy Nilsen | Date: | Tue, 25 Sep 2001 07:31:06 +0000 |
| Subject: | Including files without loosing my string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68654@lists.php.net to get a copy of this message | ||
Hello !
I am trying to keep my string after including av file.
file1.php:
(accessed with file1.php?id=1)
<?php
include 'index.php';
function func() {
echo "buddy";
}
?>
index.php:
<?php
echo "Hello";
if (function_exists('func')) {
call_user_func ('func');
}
The output should then be "Hello buddy";
Can anyone help me with this one ??
Regards
Bård Tommy Nilsen