• Welcome to Valhalla Legends Archive.
 

[PHP] Info for you PHP guys

Started by Don Cullen, September 11, 2005, 06:09 PM

Previous topic - Next topic

Don Cullen

Guess what? This is my 100th post! I just wanted to use that 100th post to tell everybody on bnet vl bot dev forums that I love 'em all, even when occassionally they elect to flame me-- you're all lovable! :-)

To celebrate the 100th post, I'm making my old PHP Bnet Stats checking script available to use. :-)

http://www.doncullen.net/bnetphp.txt

Enjoy- the code will need a bit of updating though :-P
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

Insolence

I suggest you make this into a class instead of using global vars.

Also, you may be able to use a little AJAX to only have to connect once.  Or even pass the class multiple usernames to get stats of.

Don Cullen

#2
Wish I could, I know next to nothing about PHP classes, much less about AJAX. What is AJAX? But as for passing the code multiple usernames to get stats of-- that can be done easily- I had originally coded that function for simply allowing members to get stats upon request, but the code can be easily modified to take on more than a single username.

[Edit: Added more to avoid double-posting]

I'd love to update the code, and even learn to convert it into a class, and even enhance the code to make it more efficent-- but the problem is, my host doesn't allow telnet based connections-- the script worked fine when I last tested it, but I'd rather not risk it by continuing to work on the script and test it constantly whenever I make a change while updating it. My host made it clear that to continue to do so will result in my account being suspended. It's a paid account, and the funds were paid in advance for the year, so I'd much rather avoid an account suspension.

So for the time being, I won't be able to update that particular script.
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

Insolence

www.wampserver.com (or google WAMP, I forget the URL :))
Will allow you to setup and test PHP/MySQL on your own local computer, no need for a remote server to restrict you.

www.phpfreaks.com
Learn about classes there.

Good luck and have fun, PHP is a great place to learn OO.