|
Posted by xhe on 02/23/07 01:08
Hi,
The first line is the IP address that I am checking.
It is
$url="http://www.ntc.gov.au/ViewPage.aspx?page=A02400304500100020";
On Feb 22, 5:39 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 22 Feb 2007 22:59:39 +0100, xhe <hexuf...@gmail.com> wrote:
> > Hi,
> > I need to program to check the validity of IP address through PHP
> > Initially I used this one:
>
> > $url="http://www.ntc.gov.au/ViewPage.aspx?
> > page=A02400304500100020";
>
> > $fp=fopen($url,"r");
> > if(!$fp)
> > {
> > echo "Failed";
> > }else
> > {
> > echo "success";
> > }
> > when I run it, it's output is "Failed",
>
> > I then use
>
> > $fp=fsockopen($url,80); for second line, and also failed.
>
> > This IP address is actually good.
> > Butwhen I check "www.ntc.gov.au" it is success.
>
> Where eactly are you checking the validity of an IP adress in you script?
> I can see no such effort, heck, I see no IP.
> --
> Rik Wasmus- Hide quoted text -
>
> - Show quoted text -
[Back to original message]
|