Jul 25, 2008

Starting A Web Host - Where do I start?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Hardware

free web hosting

Starting A Web Host - Where do I start?

Imtay22
Hello everyone! I am thinking about starting a web host, and I have the layout down OK, now I just need the stuff!

1.My main thing I need is a domain searcher. Like at domains.computinghost.com. I want to know what domains are available on the web and what-not. SO can anybody help me with that.

2. I need a secure sub-domain. What and how will I need to make that? Thats what I need.

Thanks all for your help!

PS. Mods/ Admins if this is not the right forum please move it. I spent 5 minutes looking for the right forum.

Reply

ghostrider
You can do a search to see if a domain name exists using a PHP function called gethostbyname(). If it returns an IP address, the host exists. If it returns the name of the host you are searching for, it means that either the site is down, or that the site does not exist. While this does not completely solve your first problem, its the best I can come up with. Perhaps you should search the DNS recrods? I'm sure there is a PHP function that does that. I will search for you and post back. However here is my code I wrote to check for a domain:

CODE
<?PHP
$hname = "www.googleaskdfjksldjf.net";
$ip = gethostbyname($hname);
print $ip; // Returns the host name, because the site does not exist.
print "<br>";
$hname = "www.google.com";
$ip = gethostbyname($hname);
print $ip; // Returns the IP address because the site does exist.
PHP?>


As for subdomains, its a feature that you can configure with Apache Web Server. As to how to do that, I have no idea. I hope this helps you.

 

 

 


Reply

Imtay22
Ok. Thanks i will try that now! I will post back if that does not work.

EDIT- Can you make it so if already exists make it return-

QUOTE
This site already Exists!
And I am also trying to get the data out of a HTML form. How would I do that? This is my File-

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<title>Domain Search</title>
</head>
<body>
<?PHP
$hname = "$_REQUEST["domain_name"]";
$ip = gethostbyname($hname);
print $ip; // Returns the host name, because the site does not exist.
print "<br>";
$hname = "www.google.com";
$ip = gethostbyname($hname);
print $ip; // Returns the IP address because the site does exist.
PHP?>
<form action="doaminsearchnow.php" method="POST">

www.<input name="domain_name" type="text">

<br />
<br />

<input type="submit" value="Check Availablity">
</form>

Example-wowihadfuntoday.com
</body>
</html>


EDIT AGAIN- Now when A domain gets searched, I want it to say either

If the domain was not yet used-

QUOTE
www."domainsearched.com" is available!


Or if the domain was in use-

QUOTE
www."domainsearched.com" is NOT available.


Thanks!

Reply

hitmanblood
CODE
<?PHP
$hname = "www.googleaskdfjksldjf.net";
$ip = gethostbyname($hname);
print $ip; // Returns the host name, because the site does not exist.
print "<br>";
$hname = "www.google.com";
$ip = gethostbyname($hname);

if($hname == $ip){

print "$ip is not available "; // Returns the IP address because the site does exist.
}else{

print "$hname is available";

}
PHP?>


Hopefully this helps you with the first part. To show whether it is available or not.

Here is the second part:

CODE
$domain_name = $_POST['domain_name'];


You put this in the script called domainsearchednow.php.

If you need anymore help please inform me either here or via personal message.

Hopefully this was helpful to you. good luck in the business wink.gif

Reply

Imtay22
Okay thanks Hitman I will try that now. I will post back with any problems.

Reply

hitmanblood
QUOTE(Imtay22 @ May 8 2007, 09:18 PM) *
Okay thanks Hitman I will try that now. I will post back with any problems.


Well hopefully I was helpful I will be glad to see and work out on any problems if there occur some more.

Although sometimes it takes me a while to come back to some of the topics in the forums as I am reading hall bunch of topic here on trap17 so you may wait some day or a bit more before I found that you have responded.

If you would like really quick response then just pm me with the topic link. wink.gif

Good luck once again.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : starting web host

  1. Host My Own Domain - Already have a domain name, and have it host with other company, but w (4)



Looking for starting, web, host, start,

Searching Video's for starting, web, host, start,
advertisement



Starting A Web Host - Where do I start?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE