You are here: Re: fsockopen commands « PHP Programming Language « IT news, forums, messages
Re: fsockopen commands

Posted by Andy Hassall on 12/04/80 11:54

On 1 Aug 2006 12:39:28 -0700, "Syl" <david.hunter@gmail.com> wrote:

>Warning: fsockopen() [function.fsockopen]: php_network_getaddresses:
>getaddrinfo failed: Name or service not known in
>/data/web/public/alert.scc.ca/anne/regwatch_links.php on line 53
>
>Warning: fsockopen() [function.fsockopen]: unable to connect to
>laws.justice.gc.ca/en/A-2/SOR-96-433/index.html:80 (Unknown error) in
>/data/web/public/alert.scc.ca/anne/regwatch_links.php on line 53
>
>laws.justice.gc.ca/en/A-2/SOR-96-433/index.html is invalid.
>
>Which is not true - since this *is* a valid URL.

A URL is not a valid host, so it makes no sense to pass it to fsockopen.

If you want to check an HTTP URL, use an HTTP client - for example cURL, or
the fopen_wrappers feature of PHP.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация