PHP-GrapesJS icon indicating copy to clipboard operation
PHP-GrapesJS copied to clipboard

After installation

Open lilianzzz opened this issue 1 year ago • 1 comments

Parse error: syntax error, unexpected identifier "SCRIPT_FILENAME" in /home/d/dissokdf/*****/public_html/config/dbconnection.php on line 23

<?php

include 'error_report.php';
include 'Database.php';
$link = new Database();
$conn = $link->MysqliConnection();
require_once 'Routers.php';
require_once 'function.php';
include_once 'define.php';

$protocol =
        (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "off") ||
        $_SERVER["SERVER_PORT"] == 443
            ? "https://"
            : "http://";


        if (!empty(SITE_PATH)) {
            $siteinstall = SITE_PATH;
        } else {
$base = $protocol.$_SERVER['HTTP_HOST'].';
}
$fname = basename($_SERVER['SCRIPT_FILENAME'], '.php');
$rname = $fname . '.php';
$alertpg = $_SERVER['REQUEST_URI'];

    
    ?>
    

lilianzzz avatar Feb 09 '24 15:02 lilianzzz

Parse error: syntax error, unexpected identifier "SCRIPT_FILENAME" in **\laragon\www*****\config\dbconnection.php on line 23

the same mistake is a pity an interesting idea

AlexImage avatar Feb 26 '24 18:02 AlexImage

The error is fixed.

pepiuox avatar May 19 '24 08:05 pepiuox