WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Fatal error: Call to undefined function session_register() in Error ?

DandeNada

New member

0

0%

Status

Offline

Posts

54

Likes

0

Rep

0

Bits

281

8

Months of Service

0%
Hello friends, I am getting a Fatal error: Call to undefined function session_register() while setting up a website. The same script is installed on another server without any issues. How can we resolve this situation? The code is as follows:

```php
include_once ("config.php");
include_once (BASEDIR . "/class/functions.php");
include_once (BASEDIR . "/class/global.php");
include_once (BASEDIR . "/class/general.firstclass.php");

$claslarac = opendir(BASEDIR . "/class");
while ($claslar = readdir($claslarac)) {
if (substr($claslar, -9, 9) == "class.php") {
include_once (BASEDIR . "/class/" . $claslar);
}
}

$database = new DataLayer();
$theme = new Page();
$general = new General($database);

if($_GET[cglk] == "logout") {
session_destroy();
header("location:index.php");
die();
}

$kadi = trim(nickcevir($_POST[kadi]));

if($_POST[sifre] == "?ifreniz") {
$sifre = "";
} else {
$sifre = $_POST[sifre];
}

if($_POST[sifre2] == "Görevli ?ifreniz") {
$sifre2 = "";
} else {
$sifre2 = $_POST[sifre2];
}

$icon = $_POST[icon];
$durum = $_POST[durum];

// More code here...

```

If you encounter any difficulties while following these steps, please let me know.
 

254

6,645

6,665

Top