PHP domain validation - is it possible in JS or VBS.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

PHP domain validation - is it possible in JS or VBS.

Post by Joe »

I made a simple script in PHP which allows me to check if a domain is valid. I was curious though if anyone knew the possibility's of this being developed in javascript or vbscript?
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Do you care to share this script - even trough PM

:D
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Which script is that, the php one I suppose. It is very easily done with about 4 lines of code. If you like I will send to you! Just give me a shout ;)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it should be possible with vbscript, but I wouldn't know where to start. Never bothered to learn it, never will.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Yes feyd, VBScript is rubbish I personally think, however I would love to try it with JS. :D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

JS as far as I've seen, doesn't have the system resources/hooks to make those kind of calls by itself. Although you could dynamically create an invisible iframe with onload hooks so you can read and "discover" the information returned by the whois or whatever you want to query against.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Ah I see, Well I guess thats something for me to do tonight :D Thanks
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

What's the rubbish in vbscript?

I've used it a few times to create neat little administration / setup scripts for winxp boxes, the scripts not only took very little time to make and saved a bunch of time in the end. In my opinion it can be quite useful.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Well I personally think VBScript is pathetic, lol. We all have our personal opinions nigma!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

true, vbscript can be useful.. but sadly, it's used for crap/jacking more often.. remember LoveBug? ;)

I'm not a fan of VB mostly because of it's memory consumption and executable bloat compared to other languages.
Last edited by feyd on Fri Aug 06, 2004 3:50 pm, edited 1 time in total.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Yes indeed feyd. I still have to say what I have always thought, VBScript is pathetic :(
Post Reply