• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

PHP pobieranie informacji z pliku lua

Blizny

New Member
Joined
Jun 26, 2012
Messages
107
Reaction score
2
Location
Poland / Bydgoszcz
Siemka mam pytanie, jest możliwość pobierania informacji z pliku data/lib/task.lua w php?
np chciałbym pobrać "KILL_WYRMS = 15000" wartość 15000
 
Code:
$task = parse_ini_file("task.lua");
print_r($task);
Jeśli masz komentarze w pliku to nici z tego rozwiązania. Najlepiej stworzyć parser ewentualnie wszystko regexem przejechać :).

Ewentualnie kopia zawartości, tam usunąć komentarze a potem funkcja wyżej
 
Last edited:
Back
Top