All pastes #494803 Raw Edit

Stuff

public php v1 · immutable
·published 2007-05-18 12:52 UTC
rendered paste body
<argonic> `alex: You could also just define a constant in the including file: <?php define('TOP_LEVEL', 1); ?> and check for it in mysql.php: if (!defined(TOP_LEVEL)) ....<`alex> well, im trying to prevent some things like some retard will find the mysql.php and put like 400 bots to that and start opening and closing connections :P<`alex> and argonic, ill try it, good idea<argonic> `alex: Name it .inc and use Apache to reject access to .inc files<`alex> oh clever