Category : localhost

In codeignter4 I followed all the right steps for removing index.php in url but index.php not removing in url and not working. I Followed this steps…. Step #1 – Configuration Change Open up the file /app/Config/App.php. Search for this code – public $indexPage = ‘index.php’; Change to – public $indexPage = ”; Step #2 We ..

Read more

i also receive these two errors : Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in C:xampphtdocsprojekatincludesdbh.inc.php on line 8 Fatal error: Maximum execution time of 120 seconds exceeded in C:xampphtdocsprojekatincludesdbh.inc.php on line 8 Here is my connection code: <?php $serverName = "localhost:8000"; $username= "user1"; $password="*****"; $dbName="zmshop"; $conn = mysqli_connect($serverName, $username, $password, $dbName); if (!$conn) ..

Read more

i’m facing with this problem that when i’m trying connect to database with constants, then it’s showing this in my VS editor: Undefined constant ‘DB_HOST’, ‘DB_USER’, ‘DB_PASS’, ‘DB_NAME’. Here my code: <?php $db[‘db_host’] = "localhost"; $db[‘db_user’] = "root"; $db[‘db_pass’] = ""; $db[‘db_name’] = "cms"; foreach($db as $key => $value){ define(strtoupper($key), $value); } $connection = mysqli_connect(DB_HOST, ..

Read more