🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #232589

problemik z require_once w PHP8/Ubuntu20

#232589
From: Jivanmukta
Date: Fri, 06 May 2022 05:47
29 lines
1925 bytes
W pliku app/Config/Constants.php aplikacji z CodeIgniter4 mam:

...
$server = array('development' => 'localhost', 'testing' => 'hosting', 
'production' => 'hosting');   // też w scripts/constant.php
require_once $server[$_SERVER['CI_ENVIRONMENT']] . '_passwords.php';
require_once $server[$_SERVER['CI_ENVIRONMENT']] . '_constants.php';
echo 'Constants 1 ';
require_once 'webdep_constants.php';
echo 'Constants 2 ';
require_once 'other_constants.php';
echo 'Constants 3 ';
require_once 'errmsg_constants.php';
echo 'Constants 4 ';

Wyświetla się:
Constants 1

tzn. plik webdep_constants.php już się nie ładuje. Nie wiem dlaczego, bo 
mam:

robert@lenovo:~/Projekty/dirtyphp-website/app/Config$ ls -la *constants.php
-rw-rw---- 1 robert www-data 1574 sie 15  2021 errmsg_constants.php
-rw-rw---- 1 robert www-data  944 lis  5 06:16 hosting_constants.php
-rw-rw---- 1 robert www-data 1803 sie 15  2021 localhost_constants.php
-rw-rw---- 1 robert www-data 1086 maj  2 21:52 other_constants.php
-rw-rw---- 1 robert www-data 1031 sie 15  2021 webdep_constants.php

tzn. uprawnienia są takie same dla wszystkich plików.
Technical Details
Message-ID: <t52cpv$3t7tg$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.2a00:f41:1874:2133:49ea:e52:fe2c:173b!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.2a00:f41:1874:2133:49ea:e52:fe2c:173b!not-for-mail
From: Jivanmukta <jivanmukta@poczta.onet.pl>
Newsgroups: pl.comp.lang.php
Subject: problemik z require_once w PHP8/Ubuntu20
Date: Fri, 6 May 2022 07:47:26 +0200
Organization: http://www.wit.edu.pl
Message-ID: <t52cpv$3t7tg$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Injection-Date: Fri, 6 May 2022 05:47:43 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="2a00:f41:1874:2133:49ea:e52:fe2c:173b"; logging-data="4104112"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit