MoneyMachine011
Newbie
- Aug 2, 2020
- 12
- 4
Please help me debugging this problem
Parse error: syntax error, unexpected 'config' (T_STRING), expecting ',' or ';' in /home/qgajwtdq/public_html/config/config.php on line 11
line 11 is this one ---> static $routingPath = "config/routes/";
i replaced all the terms of the site with website so dont mind that
<?php
namespace config;
class config{
static $mysqlHost = "localhost";
static $mysqlUser = "website";
static $mysqlPass = "website!";
static $database = "website;
static $routingPath = "config/routes/";
static $sites = array(
1 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
2 => array("url"=>"websitel", "routing" => "website.routing.php", "site" => "website"),
3 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
4 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
5 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
6 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
7 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
8 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
9 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
10 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website")
);
}
Parse error: syntax error, unexpected 'config' (T_STRING), expecting ',' or ';' in /home/qgajwtdq/public_html/config/config.php on line 11
line 11 is this one ---> static $routingPath = "config/routes/";
i replaced all the terms of the site with website so dont mind that
<?php
namespace config;
class config{
static $mysqlHost = "localhost";
static $mysqlUser = "website";
static $mysqlPass = "website!";
static $database = "website;
static $routingPath = "config/routes/";
static $sites = array(
1 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
2 => array("url"=>"websitel", "routing" => "website.routing.php", "site" => "website"),
3 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
4 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
5 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
6 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
7 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
8 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
9 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website"),
10 => array("url"=>"website", "routing" => "website.routing.php", "site" => "website")
);
}