hi,
im a beginner in programming. i try to install ptnews from: http://worldzone.net/computers/sto/news/ its a newssystem without sql, but i get a fatal error message in the .inc file called: Fatal error: Call to undefined function: gettimeofday() in news.inc on line 64
is there anyone who can help me with this problem.
Here is a pice of code of this .inc file
<?
// Timezones support (taken from slashcode)
.
.
.
$tz["French Summer"] = 7200;
$tz["West Australian Daylight"] = 28800;
$tz["Central Australian Daylight"] = 37800;
.
.
$tod = gettimeofday();
$secondswest = $tod["minuteswest"];
unset($tod);
$config = array(
// dir to store the news data files in
// ***************************************************
// newsdir must be absolute path only if news and admin
// pages are in different directories. Trailing slash!
// ***************************************************
newsdir => "./",
imgdir => "images/", // path to directory with topic images
themedir => "themes/", // path to dir with themes
imgattr => "border=0", // topic images attributes
newssuff => ".news", // file extension for news files
moresuff => "_more", // file extension for news details files
mainpg => "index.php", // main news page name
morepg => "news.php", // details news page name
tzname => "Central European", // timezone for displaying dates
pglimit => 5, // how many news on one page
abstrlen => 200 // length for news abstracts (if used)
);
// RSS backend support
$RSS = array(
rssfile => "./ptnews.rss",
sitename => "Your sitename",
sitewhat => "Site Description",
siteadmin => "your name",
httpbase => "http://your.domain/",
lng => "en-us" // language entry in RSS backend file
);
// multi-topic support
$topics=array(
general => 'General',
ptnews => 'PT News',
humour => 'Humour'
);
// multi-language support
$lang=array(
datefmt => "%d/%m/%Y @ %H:%M", // dates display format in news
dateadm => "%d/%m/%Y %H:%M:%S", // date display format for admin
.
.
.
thanx for every idea.
mafl