Lets say you need or want to display the version number of Abyss. This is actually very easy to do. The basic idea is to get $_SERVER['SERVER_SOFTWARE'] and format it. There's a few ways you can format it to look good and/or be useful.
First of all, this is what $_SERVER['SERVER_SOFTWARE'] looks like on Abyss Webserver X1 v2.4.0.3:
Abyss/2.4.0.3-X1-Win32 AbyssLib/2.4.0.3
That's long and not very useful in that form, we can separate stuff out of it and just grab parts of it.
One thing we can do is use substr() and cut off everything but the first 13 characters, which we would do with the following PHP code:
echo substr($_SERVER['SERVER_SOFTWARE'], 0, 13);
That would produce:
Abyss/2.4.0.3
We could take that even farther and do something like this:
echo str_replace('/' ,' Web Server ' , substr($_SERVER['SERVER_SOFTWARE'], 0, 13));
Which would produce:
Abyss Web Server 2.4.0.3
What we just did was cut the variable down to 13 characters then replaced the "/" with " Web Server ". We could stick the words "Powered by" in front of that and make a nice footer for your website.
If you just need the version number, that can be achieved with this code:
echo str_replace('Abyss/' ,'' , substr($_SERVER['SERVER_SOFTWARE'], 0, 13));
In that code, we're just replacing "Abyss/" with nothing, which produces:
2.4.0.3
There's my little tutorial. Just ask if you need help or an explanation.
Its possible that this code could stop working correctly if Aprelium gives Abyss longer version numbers.