Web coding (javascript, php, etc) know it alls, a question

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
eepberries
Posts: 1975
Joined: Mon Jan 24, 2005 10:14 pm

Web coding (javascript, php, etc) know it alls, a question

Post by eepberries »

So my friend who runs a small free forum he and some of his other friends frequent has asked if I could create a system for imitating a 20 sided d&d die for his d&d forum (nerdy? maybe a little. get over it). Now the problem is that it's impossible to modify the actual code of the forum. So what I have thought up is to create an system hosted elsewhere that will require a login. So the person will log in, and then they can make one roll every 30 minutes. Each roll must create a simple .html page that will say what user made the roll, what the roll was, and when the roll was made. This .html file will later be linked to from inside the forum.

Now, my question for you is, which language would be the best to use for something like this? Have any tips or advice to give? Thank you for your time
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Brainfuck.

* serious tone *

Use PHP if the server supports it; quick 'n' easy plus it has a fast production cycle (change script, save, reload page). Plus, it isn't prone to buffer overflows and other crap you get with most compiled languages (think C/C++).
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

aye, php. the forum's probably running on php/mysql anyway - so you can stick a script and a db table in there (or create another db) easily enough.

pretty sure i've seen the sort of script you're looking for on hotscripts or somewhere like that. try googling it to see if there's something you can hack to your needs.

edit: google says there are a few dice-rolling scripts that are forum mods/add-ons.
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

why not just use one of the 800 die servers around?
hell, you could even use wizards.com die server, althugh it doesnt have a validator built in
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
Post Reply