I am getting error like this
Fatal error: Using $this when not in object context in C:\xampp\htdocs\public_html\cjls\check.php on line 243
hen i try to get mime type of file, how may i fix this if any idea
<?php
$folderinfo = "filepath/filename.php";
$folderinfo = pathinfo($folderinfo);
$basename = $folderinfo['basename'];
$ext = $folderinfo['extension'];
$mimeTypes = array(
"323" => "text/h323",
"zip" => "application/zip"
);
$mime = isset($this->mime_types[$ext]) ? $this->mime_types[$ext] : "application/octet-stream";
echo $mime;
?>