Web Hosting Talk







View Full Version : Help me with my domain order script


SatuPortal
12-16-2002, 04:02 AM
Hi,

I have 2 script from different author.

1. Whois script from MRWhois - a Whois lookup script written by Marek Rozanski
2. Order Form from http://www.cgi-central.net (aFormMail)

My problem is how to combine whois script with order form so when someone click 'register' at domain name he/she choose on whois script will redirect to order form and at order form he/she will not typing the domain again.

I read on some papers that i can do this using 'echo' but still did not work.

Please see the script on my attachment.

Thank You!

seg fault
12-17-2002, 03:40 AM
try hacking http://www.unix.com.au/showthread.php?threadid=41

pickles
12-17-2002, 11:09 AM
Hi,

I didn't look at the whois script, but if it does a true whois, this will not show domains registered since the last registry update. This can be problematic, if your "taking" orders to fulfill later.

If you have a registrar reseller relationship like enom, opensrs... they have scripts that to a true availability check, and subsequent register.

Food for thought.

Bob

SatuPortal
12-18-2002, 01:21 AM
Hi pickles and seg fault,

I just want whois and order scripts that can automatically enter the domain name on domain field at order form without customer entering again domain name on domain field at order form.

So if you guys have the script that have ability like i want, i don't mind to use your script.

pickles
12-19-2002, 12:06 AM
Originally posted by SatuPortal
Hi pickles and seg fault,

I just want whois and order scripts that can automatically enter the domain name on domain field at order form without customer entering again domain name on domain field at order form.

So if you guys have the script that have ability like i want, i don't mind to use your script.

I'm really confused. I generally do a whois passthru with php, or capture and parse the results.

If you have whois on you box (most do), use php to call it and capture the results. But again, I'm confused as to how you wish to use this on your box.

Bob

barrywien
12-19-2002, 11:29 AM
Hi
It can be done, I think basically all you want is for the user to type in the domain name they want on the whois page, if the domains available supply them with a link to the order form that will already have the domain name filled in therefor they do not need to re-enter it.

If this is correct let me know, This can be done quite easily using PHP.

pickles
12-20-2002, 01:38 AM
barrywien:

Your understanding of that was brilliant. After reading your post, I went back and re-read the original question, and duh, I get it. :)

ThomasC
12-20-2002, 05:19 PM
Haha, a lot of people are looking for a simple php whois script to do the above.... mabye someone should make and give out on the board :)

*HINT* *HINT* :D

Saeven
12-20-2002, 10:34 PM
You can check ours. Page in my sig.

SatuPortal
12-20-2002, 11:14 PM
Hi barrywien,

You were right about what i need.

Sorry for everyone that read my post and get confused because my english skill is limited.:D


So barrywien, how to do it ?

SatuPortal
12-22-2002, 11:42 AM
Hi,

Yesterday i found an order script that already have whois capability on it.

But the whois only do search for .com/.net/.org

If anyone here can hack the whois code so it can search other TLDs too like .biz/.info or other country level domain, please inform me here.:D

Thank you !

barrywien
12-22-2002, 11:46 AM
Whats the name of the script, it may well be possible to hack or add a few lines of code to make it search for other TLDs.

SatuPortal
12-22-2002, 11:56 AM
Here is the address of the file :

AlphaOrder14.zip (http://www.satuportal.com/alphaorder14.zip)

barrywien
12-22-2002, 12:25 PM
Hi
Your zip file seems to be empty from this end. But I beleive by the name of the file that this script is by Alpha a member here at this forum. He sold the rights to ModernBill and they now user it also.

Rather than me telling you which lines to edit etc I would recommend asking Alpha how it can be done, after all he designed it.

ThomasC
12-22-2002, 12:48 PM
Yes, the zip file is corrupt for me also.

pickles
12-22-2002, 09:31 PM
SatuPortal:

I've only been halfway following this thread (sorry). I meant to ask at the start but got distracted.

Are you depending on whois to determine a domains availablity?

A lot of folks do this, but it can get you into some trouble. whois will not accurately report domains registered since the last registry update. Depending on when your client wants to place their order, this can be almost 24 hours.

When I "used" to do this, I had an occasion or two when the domain was registered before I got and processed the order. (It was actualy registered before the client placed the order).

If you have an account with enom, toucows, .... almost all of these guys have scripts to validate the true availabilty of the domain, and most have scripts to finish the order process.

Bob

SatuPortal
12-23-2002, 12:48 AM
pickles :

Yes, i am depending on whois to determine a domains availablity.
And i already have parava account (ICANN Registrar). They give me the script that using java capability but my server don't.

barrywien :
How to contact Alpha ? I just need someone to do a little hack to the script so it can be use to search more domain.

barrywien
12-23-2002, 05:07 AM
Just send a PM to Alpha on this forum. Although I am not sure if he supports the script any longer.

SatuPortal
12-24-2002, 01:01 AM
For everyone want to download the alphaorder script, click AlphaOrder14.zip (http://www.satuportal.com/alphaorder14.zip)

The file is not empty now. Sorry for the last file that empty:D

Anyone have ability to hack this script for more domain name search will be appreciate.

Thank You!

wowewo
12-24-2002, 01:07 AM
I took a very basic who is script and added alot of functionality to it. I added an if statement forst off. If it returns no data it gives the customer the order form. If it returns data it gives them an option to output the whois data on the screen.

I had to make the script write a cookie to remember the domain name because the order form is basically a hacked version of matt's form mail. But put all this together with the same background and nobody can tell the difference. Sorry I can't help with specific code but this is the hardest thingn I ever had to work on... or at least it was cause it's how I taught myself Perl.

Oh I took a look at this script. It looks good. I see how to make it see .biz .us etc... The problem is I don't know any other whois servers other than the one it uses. Does anyone know of any whois databases? Perhaps one they use in their own scripts?

Of all the whois scripts I've seen on the net they all seem to use this one.

SatuPortal
12-28-2002, 06:47 AM
hi wowewo,

If you want to know other whois servers :

.biz : whois.neulevel.biz
.info : whois.afilias.net
.id : whois.idnic.net.id

Now, can you combine these whois to alphaorder script ?

SatuPortal
12-31-2002, 09:06 PM
eh? anyone?

barrywien
01-01-2003, 10:30 AM
Hi
Ive had a quick look at the whois script and to be honest it does require quite a bit of coding to be able to handle all the different whois servers. Maybe if you put some $$$ up you would get a better responce to your post. Just a suggestion.