![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 184 Pomógł: 2 Dołączył: 3.02.2013 Ostrzeżenie: (0%) ![]() ![]() |
Witam wszystkich, jestem nowy na tym forum. Kolega zadał mi pytanie czy dale z pliku php mogą zostać wyświetlone tak jak np z Tabelki.
chodzi mi o coś takiego:
mam tutaj kod z Konfiguracją połączenia mysql, i czy jest możliwość aby dane host, user, pass były wyświetlane w innym kodzie np odczyt.php ma to wyglądać tak: $mysql_host = "test1"; $mysql_user = "test2"; $mysql_pass = "test3"; i na stronie odczyt.php host strony to: test1 uzytkownik storny to: test2 haslo storny to: test3 Ten post edytował troian 3.02.2013, 20:04:02 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 350 Pomógł: 31 Dołączył: 23.05.2010 Ostrzeżenie: (0%) ![]() ![]() |
Czy mówimy tutaj o include/require lub include_once/require_once? W sensie w pliku "config.php" trzymasz w/w zmienne a w pliku odczyt.php
stosujesz zapis:
linki: http://php.net/manual/en/function.include.php http://www.php.net/manual/en/function.require.php http://www.php.net/manual/en/function.include-once.php http://www.php.net/manual/en/function.require-once.php |
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 08:43 |