Tags: IP Address Lookup, Information, and Location, Test Your Internet Connection Speed
|
#1
|
||||
|
||||
|
ok so i noticed that there is a automation page. i like that.. but there is one problem.. i code most of my pages in php, but i am fairly new at it, so idk how to make that turn into a variable in php. all i need is jus a little snippet of code if some one knows! this will unlock so many new abilities 4 me in php. In case u didnt catch on, im one of those ppl who likes to learn new things about coding and what not.. so any help would be appreciated. Oh, also, if someone could look at my website AlexRiggs.com and tell me any suggestions that would be great. Im trying to make my own login system, and i think i have it, but i jus need advice from a expert! Any help is greatly appreciated! Thx ahead of time! |
|
#2
|
|||
|
|||
|
Code:
<?php
$var = file_get_contents('http://www.whatismyip.com/automation/n09230945.asp');
print $var;
?>
|
|
#3
|
|||
|
|||
|
so you're trying to get the IP address of the server executing the script? why are you using this service when there's a predefined variable to give you the IP anyway?
PHP Code:
|
|
#4
|
|||
|
|||
|
If you have curl then try this coding
$result = get_web_page( $url ); if ( $result['errno'] != 0 ) ... error: bad url, timeout, redirect loop ... if ( $result['http_code'] != 200 ) ... error: no page, no permissions, no service ... $page = $result['content']; or read this page http://nadeausoftware.com/articles/2...g_curl#Example |
|
#5
|
||||
|
||||
|
I think WIMI is using
Quote:
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|