1
I created a custom block with code:
require('\test_lib.php');
test();
the test_lib.php:
function test()
{
echo "testing...";
}
?>
Amazingly the output complaining that test() is not defined. I dont' get it.
Another funny thing is that if I wrap my custom block code into its own php file for example wrapper.php, then in the custom block,i wrote:
require('wrapper.php');
then the code works.
The problem is that my ISP disallow the 2nd option.
Anyone has any clues?
Thanks.