|
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]
|