I need to call PHP function within my custom module controller. But the relevant PHP file contain in different folder. How I solve this? `
<?php function doLog($text) {
// open log file
$filename = "form_ipn.log";
$fh = fopen($filename, "a") or die("Could not open log file.");
fwrite($fh, date("d-m-Y, H:i")." - $text\n") or die("Could not write
file!");
fclose($fh);
}
doLog("This is test");
?>