Ok so im trying to call a function from a module that calls from a module. Lol dont get confused here,
Fatal error: Call to undefined function read_news()
Code:
<?php
// tried adding the global datatype before function... didnt work!
function read_news($filename,$max_words)
{
$file = file($filename ".txt");
for($a = 1; $a < $max_words; $a )
{
echo $file[$a] . " ";
}
}
?>
basically trying to call a function from a module, but its not locating it. I think it revolves around making the function global but i dont know how to do so, can anyone help me"?
Much Appreciated,
Aric
Tags: