You are here: Re: fsockopen error need some help thanks « PHP Programming Language « IT news, forums, messages
Re: fsockopen error need some help thanks

Posted by Yoko on 11/22/06 03:04

I get this error when i turn on the error warnings in the php.ini file

Warning: fsockopen(): unable to connect to www.fetchads.com:80 in /var/www/vhosts/fetchads.com/httpdocs/fsock/index.php
on line 62


Hello petersprc,

> If using fsockopen, try without the "http://", since fsockopen expects
> a host. You could also use reafile, file_get_contents, fopen, etc. on
> a URL.
>
> Yoko wrote:
>
>> So I am using php version 4.3.9 and lets say i have a file on the
>> server called tester.php
>>
>> so i am using fsockopen to point to that file but it gives me a error
>> below.
>>
>> $fh = @fsockopen("http://www.mysite.com/teter.php", "80", $errno,
>> $errstr, 180);
>>
>> 111 Connection refused
>>
>> This server is linux Redhat Enterprise with Apache 2.x
>>
>> Is there anything i need to edit in the php.ini file or apache file.
>>
>> Thanks...
>>

 

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

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