Need help with PHP script for IP address of sites

Where may I host my php/mysql web site ?

Moderators: macek, egami, gesf

User avatar
AeroX
New php-forum User
New php-forum User
Posts: 142
Joined: Sun May 11, 2008 1:40 am
Location: London, UK
Contact:

Re: Need help with PHP script for IP address of sites

Postby AeroX » Fri Jul 25, 2008 4:27 am

wrong board.

but you can work it out by sending 2 slightly different sets of http headers to the ip.

Code: Select all

GET / HTTP/1.0\r\n
\r\n

&

Code: Select all

GET / HTTP/1.0\r\n
Host:  [domain_name_here]\r\n
\r\n

If they both return the same page then you can be rather sure that it is a dedicated server. If they return different pages that you can be rather sure that it is a shared server. (this is not a 100% correct all the time, but most of the time it is)

Return to “Hosting - Shared and Dedicated server Solutions”

Who is online

Users browsing this forum: No registered users and 1 guest

cron