CyaNox.NL


Hi there ... My name is Mark Sanders. I've been using PHP for quite a while now and decided to share some of my little tricks. Some of these tricks are just plainly a test of what I and/or PHP can do.

PHP5: IRC Bot named NoxBot

Lately I have been working a lot on an IRC bot totally made in PHP5.
You can find more information on the NoxBot webiste

http://noxbot.cyanox.nl/


PHP5: Macro resolver v0.1

This script makes it possible to use C/C++ like macros in PHP.
Things like "#define SQUARE(X) ((X)*(X))" are normally just comments to PHP but with the macro resolver they act like macro's.
You can of course ask why you would need macros in PHP ... well I didn't need them anyway ... I just wrote this for fun.

Limitations: the macroresolver.php files needs to be included first.
It also resolves things within strings.
It slows the script a bit down, using normal functions would be faster.
It creates a copy of the original file with a SHA1 string in it which might be too much for you.
PHP5 only.

Download: macroresolver.zip13.4KB


PHP5: Multiple Inheritance base class v1.0

This class was designed for fun in a very short time to emulate multiple inheritance which is not available natively in PHP.
It is unfortunately not full MI but it works quite nice.

Limitations: Protected members won't be visible. PHP5 only.

Download: mibase.zip 12.2KB


hacker emblem Get Thunderbird! Get Firefox! Stats Email Me Google Gaim No E-Patents IRSSI My host Anyone who uses IE Made with Zend RTGM Act now! Taurus Stats

IPv6 Certification Badge for CyaNox