TWLan Forum

Full Version: what are these settings?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
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'
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.
ok thanks, also another question, can i change % morale, examply player with 50k points will have 0,1% morale to player with 50 points ?
As far as I know: no
[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.
Oh sorry, it's the other way round:
Per x new villages from users, 1 left village is created.
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" ?
You can't change this, it's set in a encoded PHP file.