Page 2 of 2
Posted: Fri Aug 24, 2007 6:27 am
by vinoth
lets explain in detail I didn't get you..
Without any file means then how that page was displayed
Anyway the DNS will provide default files..
Posted: Fri Aug 24, 2007 6:37 am
by VladSun
A quick example:
Code: Select all
if (system("dig ".$domain." | grep 'ANSWER: 0,'") == "")
{
echo "Domain exists!";
}
else
{
echo "Domain doesn't exist!";
}
Posted: Fri Aug 24, 2007 6:51 am
by vinoth
fine..
It works well,
But if the Domain doesnot exits it shows the error messaage..
Is there any way to remove the system error message and display our own error..
Thanks for your suggestions
Posted: Fri Aug 24, 2007 10:26 am
by anjanesh
try using @system if its php errors you want suppressed.
Posted: Fri Aug 24, 2007 10:39 am
by VladSun
TESTED: Use shell_exec() or exec() instead of system()

Posted: Sat Aug 25, 2007 2:47 am
by vinoth
ya
shell_exec() and exec() will supressed the PHP errors
Its working fine now
Thanks for your suggestion..
Re: Domain name search
Posted: Wed Jul 02, 2008 3:57 am
by vinoth
Hi all.
Now I faced the new problem on Domain name search.
for example the
http://focalpoint.com/ is the site they already register but if i use shell_exec() or exec() functions, It shows the domain name not exists.
Can anyone provide suggestions or code to achieve the Domain name search function.
Thanks in Advance
Re: Domain name search
Posted: Wed Jul 02, 2008 6:05 am
by VladSun
No, it's not registered yet:
Code: Select all
dig http://focalpoint.com/
; <<>> DiG 9.3.4 <<>> http://focalpoint.com/
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 56257
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;http://focalpoint.com/. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2008070101 1800 900 604800 86400
;; Query time: 56 msec
;; SERVER: 212.72.193.50#53(212.72.193.50)
;; WHEN: Wed Jul 2 12:43:38 2008
;; MSG SIZE rcvd: 115
Re: Domain name search
Posted: Thu Jul 03, 2008 4:50 am
by vinoth
Hi VladSun,
Thanks for your reply.
When I try to register the site
http://focalpoint.com/, on media Temple.
It shows an error maessage
"The domain name "focalpoint.com" is unavailable".
Re: Domain name search
Posted: Thu Jul 03, 2008 6:39 am
by vinoth
Hi.
Currently I am using fsock() function for checking the domain name.
I am not sure, How it will work on all conditions.
Can anyone confirm this?
Thanks in advance