View Full Version : How would I go about finding out what host I am on?
hanser
06-06-2001, 11:27 AM
I hear lots of stuff about the various servers, but I have no clue which one I am on, and therefore no idea what news applies to me. . .
Thanks!
hanser
Since i'm not sure if you have telnet enabled, try this... go to http://yourdomain.com/phpinfo/
the very first line should tell you the host
hanser
06-06-2001, 05:18 PM
Great, thanks. :)
4SeeN
06-06-2001, 07:05 PM
I tried that but got a 404 error
Damian
06-06-2001, 07:21 PM
Gotta make sure you have the trailing slash / :)
4SeeN
06-06-2001, 07:25 PM
still get the same error
RevKev
06-06-2001, 07:35 PM
4SeeN,
I've got partial info for you... a whois on infinitestylez.com shows your DNS as pointing to ns7 & ns8.
4SeeN
06-06-2001, 07:38 PM
okay cool thanx... But does that mean i'm on host7 or 8??
and should i tell support that the /phpinfo/ link don't work??
RevKev
06-06-2001, 07:40 PM
Actually, I think it might mean you're on host 13 or 14 or something... The FAQ is outdated, so it's no help. It tells you to go to the shell and type "hostname". :)
4SeeN
06-06-2001, 07:47 PM
lol, i don't have shell access
I requested it,, but they asked me what i'm gonna do with it,, and i don't know what to tell them
RevKev
06-06-2001, 07:53 PM
Tell them the truth! Tell them that per FAQ guidelines, you want shell access in order to type "hostname" so that you can find out what host you are on. :D
4SeeN
06-06-2001, 08:02 PM
But i also want to use telnet for other things... i just don't know what i could do with it yet..... I'm still a begiiner that never even worked with telnet....
RevKev
06-06-2001, 08:08 PM
Er... I hear you can use it for IRC bots and eggdrops...
4SeeN
06-06-2001, 08:13 PM
lol
thanx for the help
tribby
06-06-2001, 08:22 PM
Create a PHP file and put the following code into it:
<? echo `hostname`; ?>
then upload it and run it from a web browser. It will tell you the same thing that typing hostname via telnet would.
-Tribby
4SeeN
06-06-2001, 08:42 PM
thanx :)
but now i need to learn how to make a php file.. lol. Theres alot i need to learn :(
RevKev
06-06-2001, 08:55 PM
Woo!! A coding question I can answer!!! :D
In a text editor, put in the following code:
<html>
<head>
</head>
<body>
<? echo `hostname`; ?>
</body>
</html>
Then, instead of saving (what is basically just like an html file) as name.html, save it as name.php. Upload the file and browse to it.
4SeeN
06-06-2001, 09:06 PM
Yo Rev your da man!!!!!!!!!!
Do you know anyplace online where i could learn php,, and do u have aim?? Would it be better to save the file as .php or .phtml
RevKev
06-06-2001, 09:17 PM
All my php files are saved as .php. I didn't know there was an option. As for learning php, I bought a book. Probably not the best one around for learning, but I have some other programming experience (though it was over 10 years ago :) ), so it worked for me. "PHP and mySQL Web Development" by SAMS. If you're already doing the html yourself, adding small bits of php to it is pretty easy. From there, I just started experimenting.
I have aim, yahoo, and msm usually running pretty much all the time. Username is BirkenPreacher for aim and yahoo, RevKev for msm.
hanser
06-06-2001, 09:19 PM
http://www.google.com/search?hl=en&lr=&safe=off&q=php
;)
tribby
06-06-2001, 09:20 PM
Originally posted by RevKev
<html>
<head>
</head>
<body>
<? echo 'hostname'; ?>
</body>
</html>
Rev, you made a small mistake :)
<? echo 'hostname'; ?> needs to be <? echo `hostname`; ?>
You have single quotes instead of backticks (in the upper left corner of the keyboard)... backticks are essentially the same thing as the exec() function, they indicate to the PHP interpreter that it's echoing the result of a shell command and not just echoing the string 'hostname'...
-Tribby
4SeeN
06-06-2001, 09:35 PM
Thanx everyone, for ur help!!
matt2004
06-06-2001, 09:43 PM
just thought I would throw my 2 cents worth in about the book.....
I have the sams teach yourself php in 24 hours and I loved it
almost all of my books are from the sams teach yourself something in 24 hours or sams teach yourself something in 21 days.....
they are probably intermediate skill level books but I love em
very well organized..... great as a resource
anywayz..... later
Football Outlet
06-06-2001, 10:13 PM
Hanser--
You are most likely on HOST 12. Since the server crash last week, there is no phpinfo/ or cgi-sys/ stuff to reference it seems.
At least that's what's going on with my site, and I'm on HOST 12.
:)
Willing to wager anything that you ARE host 12 either that, or I AM the weakest link. :D
hanser
06-06-2001, 10:18 PM
That phpinfo thing worked fine for me :)
http://www.liquidsynergies.com/phpinfo/
vBulletin® v3.7.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.