I am facing an issue in declaring a fucation in block which I have added . I am calling a function by including an file which ia placed in the theme. I have also tried it by placing out of the theme folder. The function is alredy being user in front page. But when I am using the same function in that block. The screen gets blank and nothing displays. some part of my block coding is written below. Please help me.

<?php
global $base_url;
include($_SERVER['DOCUMENT_ROOT']."/travellar/geoiploc.php");
//$ip = $_SERVER["REMOTE_ADDR"];

$ip = "203.189.25.0"; // Australia IP test
$country_code = getCountryFromIP($ip, "code");

Comments

spiderman’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

AFAICT, this is unrelated to this module.