Problem with extern php script
Posted: Sun Dec 02, 2007 8:46 pm
Hi Forum.
I'am using Serendipity 1.1.2 and PHP 5.2.0-8+etch7
My problem is when i try to use this plugin 'serendipity_event_externalphp' to include my PHP scripts, they wont work properbly.
Here is a small example for an external PHP Script and my problem.
I cant find my mistake.
Why does the echo in that function not work?
Thanks for reading this.
I'am using Serendipity 1.1.2 and PHP 5.2.0-8+etch7
My problem is when i try to use this plugin 'serendipity_event_externalphp' to include my PHP scripts, they wont work properbly.
Here is a small example for an external PHP Script and my problem.
Code: Select all
<?php
$test = 'this is just a test';
// This echo works
echo $test;
function example_test()
{
global $test;
// This echo does not work:
echo $test;
}
example_test();
?>
Why does the echo in that function not work?
Thanks for reading this.