Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Checking The Availability Of A Domain


I want to know whats the best way to check if a domain is available or not for registeration? Is there a recommended class i should use or is it easy to code myself?




View Complete Forum Thread with Replies

Related Forum Messages:
Ajax Script To Search Domain Name Availability In Php
hai friends can any one of you do my favour and send the script to
"search domain name availability in php using ajax"

View Replies !
Checking For Amazon Availability
Rather than reinvent the wheel, I was wondering if anyone had a tried and true and fast way of checking a string containing availabilty information for an Amazon request.

View Replies !
Checking Room Availability For Hotel Booking System
I was wondering if anyone could help me with a problem I'm having.
I've been using Dreamweaver to create a hotel booking system for a
friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm
struggling with is checking the Room Availability based on dates that
are typed into a textfield and then returning a list of the available
rooms on the next page.

The three tables involved in this function are:

CREATE TABLE `room` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Price_Double_per_Night decimal(5,2) NOT NULL,
Price_Twin_per_Night decimal(5,2) NOT NULL,
Price_Single_per_Night decimal(5,2) NOT NULL,
Price_Double_per_Week decimal(5,2) NOT NULL,
Price_Twin_per_Week decimal(5,2) NOT NULL,
Price_Single_per_Week decimal(5,2) NOT NULL,
PRIMARY KEY(`Room_Number`),
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking_link_entity` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Room_Booking_ID int(11) NOT NULL,
Single_Double_Twin enum('Single','Double','Twin') NOT NULL,
PRIMARY KEY(`Room_Number`, `Room_Booking_ID`),
INDEX `Room_Number`(`Room_Number`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
FOREIGN KEY `Reference_14`(`Room_Number`)
REFERENCES `room`(`Room_Number`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_85`(`Room_Booking_ID`)
REFERENCES `room_booking`(`Room_Booking_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking` (
Room_Booking_ID int(11) NOT NULL AUTO_INCREMENT,
Customer_ID int(11) NOT NULL,
Bill_ID int(11) NOT NULL,
Date_of_Arrival date NOT NULL,
Date_of_Departure date NOT NULL,
Number_of_Nights tinyint(3) NOT NULL,
Date_Booking_Made date,
Status_of_Booking enum('Booked','Arrived','Departed') NOT NULL,
Total_Cost decimal(7,2) NOT NULL,
PRIMARY KEY(`Room_Booking_ID`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
INDEX `Customer_ID`(`Customer_ID`),
INDEX `Bill_ID`(`Bill_ID`),
INDEX `Date_of_Arrival`(`Date_of_Arrival`),
INDEX `Date_of_Departure`(`Date_of_Departure`),
INDEX `Status_of_Booking`(`Status_of_Booking`),
FOREIGN KEY `Reference_03`(`Customer_ID`)
REFERENCES `customer`(`Customer_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_14`(`Bill_ID`)
REFERENCES `bill`(`Bill_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

I've just discovered that MySQL 4.0.21 does not support subqueries.
I'm basically stuck with this version of MySQL. I think I've got
round the subquery problem by using a multi query option as follows:

1.Create a temptable that will store all of the room numbers that
have bookings for the particular dates requested as follows:

SELECT DISTINCT a.room_number INTO temptable
FROM booking_link_entity AS a INNER JOIN room_booking AS b
WHERE b.departure_date >$_POST[‘ARRIVAL'] And b.arrival_date <
$_POST[‘DEPART'];

2.Left join this with the room table and pull out rows with no match

SELECT a.room_number, b.room_number
FROM room AS a LEFT JOIN temptable AS b ON a.room_number=b.room_number
WHERE b.room_number IS NULL;

3.Delete temp table

I've tried doing this in Dreamweaver, but to no avail. I have a
feeling it is too complex for Dreamweaver.

My php knowledge is very basic and was wondering if anyone could give
me some pointers as how to do this in PHP?.

View Replies !
Domain Checking
is there any example codes i could look at that checks a domain names avalibility. (do they just ping for a reply)?

View Replies !
Ssl Certificates And Checking Domain Access
I have a SSL certificate for my domain www.#*$!xx.net

Unfortunately, it is not a wildcard certificate and will not work for browser access to xxxxx.net

Is there a way in PHP to check the browser address and if a user types in xxxxx.net, I can forward them to www.xxxxx.net?

View Replies !
Checking A $_POST Array Came From Your Domain?
How do I check that a submission in the $_POST array came from my own server? That is to say, someone from another server (or their own hard disk) isn't making a copy of my submission form and submitting it from there?

I know about $HTTP_REFERER but that can be spoofed.. Anyone know a decent way?

View Replies !
Checking DOMAIN Name Valid Of Email Address
SO i am using a user registry to a database and email validation is needed, the host is on the Windows platform so checkdnsrr() function is not possible. After reading various material i was able to obtain the following function which uses the nslookup available on windows: Code:

View Replies !
Domain Checking Problem : $_SERVER["PHP_SELF"]
I'm trying to insert some html if the browser location is my top level domain (www.mydomain.com) only, and I have the following code which appears not to work :-(

Can anyone cast an eye over it?

<? 
$spacecheck = $_SERVER["PHP_SELF"]
if $spacecheck = "/" {
echo ('<td height="27"></td>')
} else {}
?>

View Replies !
Accessing Cookies After Domain Has Been Mapped To Another Domain/folder
I had my host map "domainA.com" to folder "domainB.com/folder". I'm finding when accessing
"domainA.com" that PHP scripts which utilize $_COOKIE[] aren't able to see the cookies belonging to
"domainA.com". However, JavaScript scripts can see the cookies via "document.cookie". So far, the
only way I've found to deal with this is to redirect all access to "domainA.com/index.html" to
"domainB.com/remappedindex.html". Any ideas on a better, more straight forward way to do deal with
this?

View Replies !
Preg_replace To Change The Domain And Directory To A Normal Domain
I have very long string, and it happens to have a domain in it, and the domain has hyphens in it, and extends to a few directories.

Example:

text of string...http://www.my-domain-here.com/dir1/d...xt...remaining text

And I want to change this to

text of string...http://www.newdomain.com/file.txt...remaining text

The file.txt changes for every file. The only static text is the domain and the directories. How do I do a preg_replace to change the domain and dirs to a normal domain.

View Replies !
PEAR Availability
I'm starting to look into PEAR, and it looks like there's some interesting
stuff in there. I'm wondering how much I can rely on it for a distributed
app. If I understand correctly, it's now included in the PHP distro, and
installed by default. What version did this start with? Is the default
installation just the base class, or are some of the packages included as
well? The tricky question is: does anyone have any idea of how commonly
it's installed? Do most hosting companies provide it? I know end users can
install it for themselves, but I have enough support issues without having
to hold users' hands on that.

View Replies !
PHP Availability Calendar
Do you guys know somewhere where i can find a script which creates a Calendar which can be controled via a database, so if a date is "occupied" then the date will be marked at BOOKED.

View Replies !
Availability Checker
I'm trying to build a site for Broadband and I am wanting to put a Broadband availability checker on my site like alot of other site have, However i am quite  new to PHP. Could someone point me in the right direction as how to go about producing the above?

View Replies !
Availability Calendar
where I could get a PHP based availability calendar for a holiday apartment website? I currently have the calendar as a html tables based affair that is updated via DW, but I am trying to migrate the site to PHP and wish to introduce a web based calendar that can be updated online.

I am looking for something similar to http://www.lanzarotebreaks.com/vill...ar.php/3882.htm that displays in a table format
but is controlled by PHP/MySQL, would like it to have online admin functionality. Am willing to learn how to handcode one if there are any good tutorials. Any help is gratefully received.

View Replies !
Availability Script
i have a number of villas in spain but id like to be able to show there availability online to prosepctive clients to cut down on wasting there time when a particular villa is not available!

i need to be able to show booked and available periods from anything from 1 day to two months, does anyone know i way i could do this, are there any ready made scripts out there doing this.

View Replies !
PEAR Availability On Web Hosts
Just wondering if anybody knew the availability of PEAR classes on most web hosts... i mean like if i write a script using say the PEAR db abstraction class, would most web hosts have the PEAR class installed and in the include_path so that my script would work?

View Replies !
Varying Availability Of Libraries
I'm having problems connecting to postgres via php.  Error message = 'undefined function' when I make the call to pg_connect.  I have modified the php.ini file to enable the extension=php_pgsql.dll line.  The .dll in question exists in both windows and the defined php extensions directory.  I have confidence that the php.ini file in question is the one in use by Apache (if I rename, everything bombs). Code:

View Replies !
Writing Pseudo For Availability
creating an online store for a project in on of my classes. I've searched around and cant really find how to create some availability scripts. How can I create a script to check our database on whether certain things are available? Any suggestions? Just asking for a good starting point.

View Replies !
Check Availability Button
I have a form that accepts user info. I want to create a button that enables the user to check for the availability of the username entered before continuing with the rest of the form. I have tried using the button onclick to call a JS function. The JS function have codes to compare the username with database select.

View Replies !
Date Columns Availability
I done an availabilitycheck that until now seems to work just perfect, except 1 problem. For exampel in the database if I have an booking in datecolumns llegada and salida dates 25/11 and 15/12, I would like the days 25/11 and 15/12 to be marked as available. This is the code I have:

$result = mysql_query ("SELECT llegada, salida, propiedad from bookings where ( propiedad = '$propiedad' )
AND (('$llegada' BETWEEN llegada AND salida) or ('$salida' BETWEEN llegada AND salida) or (llegada < '$llegada' AND salida > '$salida') or (llegada > '$llegada' AND salida < '$salida'))", $dbh);

In this piece of the code this is what I would like to do but don´t work:
('$llegada' BETWEEN llegada AND salida-1) or ('$salida' BETWEEN llegada-1 AND salida)

View Replies !
Calender - Availability Chart
I have availability on my site in an calendar and I manually introduces if available for that day or not. But I want to do it autmatically. At the moment I have the reservations in an database table, I have arrival in one column and departures in another column, both date types.

View Replies !
Redirection And Server Availability
I have two servers, one hosted and one local. My local server uses dynamic dns and I am trying to write a script on my hosted server that will check to see if my local server is accessible. If it is accessible I would like the script to do a browser redirect to my local server. If the connection can't be made I would like the script to be in the header of an index page on the hosted server or redirect to a valid page one the hosted server. From what I've found on the net it should be possible using socket() but am not sure how to go about it.

View Replies !
Access Domain Via IP In Multi-domain Server
I'm trying to write a script that can connect to a domain using it's IP address.
But I'm dealing with a multi-domain server, so the IP address needs an additional string describing which domain I want to access. I've seen it done before but forgot the syntax.
It's an apache server with cPanel.

View Replies !
301 Redirect Domain Names To Main Domain
I have some domain names registered at GoDaddy and one free hosting account there on a Linux shared server. I needed a way to 301 redirect these domain names to my main domain name at my Yahoo store.

According to GoDaddy tech support, I can't access the .htaccess file, and the only way I can do a 301 redirect is using php code:

View Replies !
Check Room Availability System
I am super new to php/mysql etc. i am just trying to do a room availability system.
I have 5 rooms in 5 different category. i like to know how to design a DB and write a php that takes two different dates[checkin date / checkout date] and verifies the DB for availble rooms.

View Replies !
Access From One Domain To Another Domain On Same Server ?
I own three dedicated servers, do You know any way how to get from another domain to other domain on same server through php scripts ? maybe i just could use fopen function with full path to domain, but what's that path...

i've seen in cgi something like this:
/var/www/virtual/domain/top2/html-amat2.html

i think something could works either in php any ideas ?

View Replies !
Set Cookie Function For Both Www.domain.com And Domain.com
I searched but couldn't find a clear answer so I'm sorry if this is a repeat.  If you point me in the right direction, I'll go When I set a cookie, it only sets it on my domain without the www. (so if someone uses www.domain.com, the cookie doesn't work).

Here's what I have:
 setcookie("matewan_login",$joined,time()+62899200);

Suggestions?

View Replies !
Email From Apache@domain.domain.com
I have tried sending mail with:

mail and imap. I know how to set "From" headers and this works fine when I send an email to an email. Heres the catch: when I send an email to a cell phone (i.e. 1234567890@vtext.com) it ignores the "From" header and says it is from apache@mydomain.mydomain.com.

View Replies !
Set Up A Domain Name That Points To A Sub Domain Of A Domain?
I am creating a content management system where users only need to setup an account and all their information is stored on my server, including pictures, member data, etc...

I want the users to have the ability to use my servers and still have their own domain name, like "mysite.com" -- not "contentsystem.com/mysite/".

How can I make it so when the user goes to "mysite.com" he is actually going to "contentsystem.com/mysite/"? I would still have to register and buy the domain name "mysite.com", but how could I do redirect it to the real address?

View Replies !
Redirect From Domain To Aff Domain?
What i would like to do is setup a PHP/htaccess redirect of some sort to redirect a link to an affiliate link, problem is i would like to keep the aff id in the url

Example:

ht*p://www.mydomain.com/info.php?a=1234&p=?&t=?

or preferably

ht*p://www.mydomain.com/info.php?p=?&t=?

redirects to:

ht*p://www.affiliatesurl.com/click?a=1234&p=?&t=?

What i would like is to keep the last 2 variables if possible as i have over 2000 links and they are deep aff links so creating a simple redirect for every url would result in one crazy .htaccess file as for creating 2000 meta refresh pages! ouch!

If i could implement something like the above with PHP i could do a simple search/replace of www.affiliatesurl.com/click?a=1234& to www.mydomain.com/info.php?

View Replies !
Getting Domain Only
given an url (through a form) like

http://www.com.com/sdsfewa/asadasd/asdasdas
www.nl.sd/sdfsf/sdfds.xml
weblog.lastpak.nl/index.php?id=sdfsd
http://testing.stupid.com

i want to have only the domain (in this case www.com.com, www.nl.sd,
weblog.lastpak.nl and testing.stupid.com),so stripping of the http://
(can be done easily) but also everything behind .com .nl or whatever.

View Replies !
2 Domain Name, 1 DB
just wondering if its possible to check if a user logs in at DOMAIN_1, then the user
goes to DOMAIN_2 he is still logged in? when he logs out on one domain he is logged
out on both. Both sites have permission to connect to each others DB.

View Replies !
How To Get The Domain Name?
I am running PHP 4 locally, and submit form data to a page of this
form:

http://mine.no-ip.org/folder/response.php

In "response.php" I attempt to get the value of
"$_SERVER['SERVER_NAME']" but instead of giving me "mine.no-ip.org",
it gives me "localhost.localdomain". How would I configure PHP, or my
Apache 1.31 web server to return "mine.no-ip.org" or is there an
easier way of retrieving this string?

View Replies !
Getting Domain Name Out Of Url..
Take for example this url: http://domain.com/regex/regex.php

I want to get "domain.com" out. Im very unfamiliar with regex, but it seems like its the only option.

View Replies !
Ban Domain Using Php
Because of the nature of my (WordPress) blog, various website & online forums sometimes link (usually unfavorably) to my site causing floods of flames and other abusive comments.

I've discovered a few ways you can ban visitors fr. these domains to access the site. Someone suggested this php script which I tried to insert into my header.php file:

<?php
$urls[0]='http://www.banneddomain.com'
$urls[1]='http://banneddomain.com/'
$ref=strtolower($_SERVER['HTTP_REFERER']);
$url='http://www.mydomain.com/403.shtml'
if(!in_array($ref, $urls)){
header('Location: '.$url);
}
?>

But after trying to add the script in 3 diff. places within the file I couldn't get it to work. When I tried to access my site I'd get a blank browser screen. Finally, I had to use ftp to remove the script.

Can anyone think of how this conflict might arise? Is there possibly something wrong w. the script (which I didn't write)?

View Replies !
Getting Domain Name
Is there a way i can do this:

if (this site is http://www.aexampledomain.com){
do this
}else{
do that
}

I really need a function which returns the domain name the user is on. For instance it will check if you are on http://www.awgaeg.com instead of http://www.areukyawefkuyg.com

if not, is there a equivalent javascript function which a can also return the address of the site?

View Replies !
Cut Domain Name
i have a variable. it has an url.

exmaple:
$variable="http://www.phpbuilder.com/board/newthread.php?do=newthread&f=10";
or
$variable="http://www.phpbuilder.com/";

i want to cut the server_name (domain) of this variable as result in this exmaple result must: www.phpbuilder.com. any one can help me?

View Replies !
Get Domain Name
if there is a way to get the Domain Name that your scripts are running under? for example

if(getdomain() == "www.mydomain.com"){

//do this stuff

}

What I am trying to do is keep people from taking my code and running it on a different server/domain.

Of course they could always go in and erase that line of code, but the people who might be taking it don't know much about programming so I just want to prevent them from copying and pasting my code.

View Replies !
Domain Q: Www.foo.com/bar, $x='bar'; How To Do This?
If I have a URL for my website:

http://www.foo.com/bar/

I want to parse just the subdir 'bar' so that I get

$x = 'bar'

Similarly if I have http://www.foo.com/bar/poo/

I want

$y = 'bar/foo'

is there a way to do this?

View Replies !
Domain A To Domain B
if its possible for a person to log in using a form on Domain A, which then authenticates them and forwards them to Domain B. However, Domain B would need to know they were 1) authenticated and what their username was based from a Cookie set by Domain A. Domain A is real. Domain B is a virtual domain of Domain A so all files whether they are www.domaina.com/login.php is exactly the same as www.domainb.com/login.php.

When they log in on Domain A would it be possible to write to a MySQL database with a PHP Session ID and then read that MySQL record when they get to Domain B? I just wouldn't want to pass their session id as part of the URL if possible. Perhaps this is impossible. I'm trying to achieve something similar to Microsoft's Passport feature but on a way smaller scale for a particular purpose.

View Replies !
Getting The Domain
I want to dynamically create a link to a file, depending on what domain the script is on. So link could be http://localhost/downloads/file.zip or http://www.domain.com/donloads/file.zip

View Replies !
Possible To Find Domain ?
hi I have two domains that I want to point to the same site, however I want each site to be customised for each domain, site title, header, email address's etc

todo this I need to figure out howto find which domain the client used to access the website. I tried using $_SERVER['SCRIPT_URI'] but with no success.

View Replies !
Set A Cookie For Another Domain
I am not sure if this is a PHP problem or not, but since I use PHP for everything, perhaps there is a PHP workaround.

I am trying to set a cookie for another domain, ie a domain that isn't the same as where the script is being run, and both Netscape 6 and IE 6 ignore the code as if it doesn't exist.

I have tested the same code with the domain the script lies on and the cookie manipulation works fine.

Does anyone have any idea how to get around this?

View Replies !
Domain Search
We wish to allow customers to search for domains availability from our website. Please let us know how to integrate this feature in our website.

View Replies !
Domain Name Cloaking
I know its not really a PHP questions but thought you clever lot might know the answer:
how is it possible to have a number as a domain name? e.g. http://123123123 (not valid)

I recently got spammed with a url such as the above and it worked and has intrigued me.

View Replies !
Extract Domain Name From URL?
I probably have to use some type or ereg_replace() or preg_replace() on this, but damned if I can get it to work. I have a list of urls that look like this:

site1.com
site2.org/
site3.net/index.htm
site4.co.uk/~user/page.php
...

How would I go about removing anything after the last forward-slash, and add a forward-slash if there isn't one, so that the final list will look like this:

site1.com/
site2.org/
site3.net/
site4.co.uk/~user/

If there's a way to do it that will remove the slash on the end, that's even better, so that the final list looks like this:

site1.com
site2.org
site3.net
site4.co.uk/~user

View Replies !
Domain Redirect
First, I'm new to PHP . . . Second, I've searched for this,but can't seem to find what I'm trying to do.

I have a new domain that I would like to temporarily host in a directory of another site I already have running. Is there a PHP script that will direct a user depending on what url they enter, i.e. www.domain1.com takes them to www.domain1.com/main.php and www.domain2.com takes them to a subdirectory of domain1 or www.domain1.com/dir/index.html?

I've tried the script below as default.php that directs depending on domain entered, but I'm not sure if it will even work and I get a parse error on line 4:

<?php
$host = $_SERVER["HTTP_HOST"];
switch ($host) {
        case 'www.domain1.com':
                header("Location: http://www.domain1.com/main.php");
                exit();
        case 'domain1.com':
                header("Location: http://www.domain1.com/main.php");
                exit();
case 'www.domain2.com':
                header("Location: http://www.domain1.com/dir/index.html");
                exit();
case 'domain2.com':
                header("Location: http://www.domain1.com/dir/index.html");
                exit();
        default:
                header("Location: http://www.domain1.com/main.php");
                exit();

                }
?>

View Replies !
Domain Name Validation
I've been looking for a function that can check a string and return true if it contains a valid domain name. It needs to check that the label (part before the .com) is less than or equal to 63 characters, contains only alpha-numeric characters and hyphens, does not start or end with a hyphen, and is followed by the top level domain (.com, .net, etc.).

View Replies !
Exctracting The Domain
I wants to try to add a new feature, which domain the surfer came from, since the list with $HTTP_REFERER is becomming pretty long it should work with both: www.domain.com/html/page.htm, www.sub.domain.com/html/page.htm, sub.domain.com/html/page.htm, and even numeric IPs if that is possible: 123.456.789/html/page.htm

now what i want is the domain.com or the IP, if that is what was in the referer, I have been thinking about this but can't figure out howto, does anyone know?

View Replies !
Domain Name Check
I want to check domainnames on my website. Type in a name and you'll see if it exists or not. I've once had a CGI Script dat does this... but I wonder if its also possible in PHP.. and how?

View Replies !
$PHP_SELF - Get The Domain Name That Is Currently Being Used
I'm using the simple phrase $PHP_SELF to produce the location of the page currently loaded. But what I really need is to get the domain name that is currently being used, but without the extra folders and filenames after it. How can I simply get the "http://www.current-domain.com" part but leave off the rest ("/folder1/file2.php")?

View Replies !
Webmail @ Ur Domain
does anyone kno where I could get a script for providing email off my domain, like everyone.net and bigmailbox etc Is it possible to do that with a script? I checked on hotscripts but their ones seem to be for getting say your BT email for example.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved