TWLan Forum
what are these settings? - Printable Version

+- TWLan Forum (https://twlan.org)
+-- Forum: Legacy (https://twlan.org/forumdisplay.php?fid=61)
+--- Forum: TWLan 1.x (DSLan) (https://twlan.org/forumdisplay.php?fid=62)
+---- Forum: Deutsche Community (https://twlan.org/forumdisplay.php?fid=65)
+----- Forum: Spielerprojekte (https://twlan.org/forumdisplay.php?fid=9)
+------ Forum: Vorschläge und Fragen (https://twlan.org/forumdisplay.php?fid=47)
+------ Thread: what are these settings? (/showthread.php?tid=4467)



what are these settings? - stef534 - 29.06.2011

PHP Code:
max_execution_time 6     Maximum execution time of each scriptin seconds
max_input_time 
6    Maximum amount of time each script may spend parsing request data
memory_limit 
512M 

What happens when i change them, i see these settings in 3-4 files(php.ini in apache/bin, and other folders) If i change them in that way , will it change something?


RE: what are these settings? - Molt - 29.06.2011

Yes it will, but you'll hardly ever notice it.
Imagine a PHP script with such a loop:
PHP Code:
while(true
The script will never be parsed until its end. But after max_execution_time minutes, it will be stopped.
For the second option, imagine a file hoster where you're gonna upload a movie you made (think of 10 GB). With a slow internet it will take you years to transfer this file, but after max_input_time minutes, the transfer will be cancelled (doesn't have to be a file, can be everything your computer sends to a server).
If a memory limit is set, a script won't use more than that amount of RAM.
For example, I wrote a file decoder for a file i found in a game, and because it was so big (1.5 GB extracted) and the scripts reads it all at once, puts it into variables, decodes it, and only then saves it, 512 MB weren't enough and I got an error.

Greetings
Molt


RE: what are these settings? - stef534 - 01.07.2011

Ok thanks, what about other settings in config.php , it isn't translated to english ;/, examply this:
PHP Code:
$config['count_create_left'] = 1

What will be if i put -1?

and this:

PHP Code:
$config['agreement_per_hour'



RE: what are these settings? - Molt - 01.07.2011

PHP Code:
$config['count_create_left'] = x
Whenever a new village is created for a user, "x" left villages will be created too.

PHP Code:
$config['agreement_per_hour'] = x
Ever seen an "Agreement"-column in a village's overview after nobling it?
x is how many points are added in (1 hour / speed) if it's not 100.


RE: what are these settings? - stef534 - 01.07.2011

ok thanks, also another question, can i change % morale, examply player with 50k points will have 0,1% morale to player with 50 points ?


RE: what are these settings? - Molt - 01.07.2011

As far as I know: no


RE: what are these settings? - stef534 - 01.07.2011

[quote='Molt' pid='63584' dateline='1309533262']
PHP Code:
$config['count_create_left'] = x
Whenever a new village is created for a user, "x" left villages will be created too.

i set it to 100 and nothing happened.


RE: what are these settings? - Molt - 01.07.2011

Oh sorry, it's the other way round:
Per x new villages from users, 1 left village is created.


RE: what are these settings? - stef534 - 01.07.2011

ok last question, i want to change some images, examply this [Image: 2r4imxd.jpg] is it possible to change it to get image from other folder? Examply not from "htdocs\graphic\big_buildings" but from "htdocs\graphic\modern" ?


RE: what are these settings? - Molt - 01.07.2011

You can't change this, it's set in a encoded PHP file.