Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Camera error

Initiate Mage
Joined
Aug 23, 2014
Messages
3
Reaction score
0
Does anyone know how to fix this?The index.php file in the camera folder is not able to close the session, so when I take a photo, it loads the previous photo

Error:
Code:
PHP Warning:  session_destroy(): Session object destruction failed in \camera\index.php on line 38

index.php:
Code:
<?phpinclude_once "Init.php";use Images\Image;use Images\Extractor\ImageExtractor;/*	Mod version	Stage 1: Planes		*/session_start();$mode = "set"; // Set or getif(isset($_GET["mode"]))	$mode = $_GET["mode"];$content = file_get_contents("php://input");if($mode == "set"){	$_SESSION["picdata"] = $content;}else{	if(isset($_SESSION["picdata"]) && isset($_GET["name"]))	{		$image = new Image();		$overimg = new Image();				$image->SetImageFromContentString($_SESSION["picdata"]);				$overimg->SetImageFromFile("overmarks/logo1.gif");		//$overimg->Opacity(0.2);				$image->PasteImage($overimg, $image->width - $overimg->width - 10, 10);				$name = $_GET["name"];		$image->SaveAt("pictures/$name.png");				session_destroy();		header("Location: pictures/$name.png");		//header('Content-type: image/png');		//$image->ShowImage();	}	}

Line 38:
Code:
session_destroy();
 
Back
Top