Update README.md

Added info about ouptub_buffering and how to rename database
This commit is contained in:
foin137
2020-04-25 15:46:19 +02:00
committed by GitHub
parent 6158b1533a
commit e7f9317548

View File

@@ -9,9 +9,17 @@ However, I would not consider myself a professional programmer, even less at the
If you have any comments or tips, please let me know! If you like, you may also contribute, but I am new to Git(Hub), so please be patient with me ;)
# What is required?
The game is written in php, so will need a php parser on your webserver. You also need a database called "werwolf", you do not need to insert any tables, this is done by the script automatically.
The game is written in php, so will need a php parser on your webserver.
Output buffering needs to be enabled due to some maybe not quite ideal programming. Otherwise, cookies cannot be set.
You can find the corresponding setting "output_buffering" in the php.ini file. Setting it to 4096 should work.
You also need a database called "werwolf", you do not need to insert any tables, this is done by the script automatically.
Rename 'includes.example.php' to 'includes.php' and insert your id, passwort and host.
If you want to use a different database name, you can change it in 'includes.php'
# Deutsche Anleitung
Das ist Quellcode einer php Internetanwendung "werwolfonline", die ich vor ein paar Jahren geschrieben habe. Man findet eine spielbare Version auf www.werwolfonline.eu
@@ -21,5 +29,13 @@ Allerdings würde ich mich nicht als professionellen Programmierer bezeichnen, d
Ich würde mich freuen, wenn jemand Tipps oder weitere Vorschläge hat! Wer will, kann natürlich auch via Git(Hub) beitragen, ich bin nur leider noch nicht sehr erfahren im Umgang auf GitHub - sry ...
# Was braucht man?
Einen Webserver mit php interpreter und einer Datenbank namens "werwolf". Tabellen muss die Datenbank keine enthalten, die werden vom php Skript selbst erstellt.
Einen Webserver mit php interpreter und einer Datenbank namens "werwolf".
Auf dem Webserver muss output buffering aktiviert sein, ansonsten können keine Cookies gespeichert werden.
Die Einstellung findet man in der php.ini Datei unter "output_buffering". Ein Wert von 4096 sollte funktioniern.
Die Datenbank muss keine Tabellen enthalten, die werden vom php Skript selbst erstellt.
Benenne 'includes.example.php' in 'includes.php' um und füge id, passwort und host für die Anmeldung in der Datenbank hinzu!
Es kann natürlich auch ein anderer Name für die Datenbank verwendet werden. Die zugehörige Einstellung kann in 'includes.php' vorgenommen werden