Moonglobe, if you actually use that....I'm gonna have to come to Canada just to smack you.
Useful functions....there's so many. Probably my most used function is a really small one for gracefully dying. When you execute die(), things just stop. Well, i want my footer to still appear dammit!
Name inspired by QNX 😃
<?php
function slay($message) {
?>
<table border="1" cellspacing="4" cellpadding="4" width="50%" align="center">
<tr>
<td class="sidepad"><b><?=wordwrap($message,50,"<br />")?></b></td>
</tr>
</table>
<br />
<?php
require("/var/include/footer.php");
die();
}
?>
I use DBX functions a lot too, but I wrote my own wrapper for them so I could include LDAP, and not have to pass so many variables to them...