By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

connection refused error

P: n/a
I am getting a connection refused error for the following piece of
code

$errno = 0;
$errstr= "testt";
fsockopen("www.google.com", 80, $errno, $errstr, 300);
echo $errno;
echo $errstr;

what could be the reason?
I am running php 4.4.4

Chiman
Dec 19 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Chimanrao" <ch*******@gmail.comwrote in message
news:63**********************************@s8g2000p rg.googlegroups.com...
>I am getting a connection refused error for the following piece of
code

$errno = 0;
$errstr= "testt";
fsockopen("www.google.com", 80, $errno, $errstr, 300);
echo $errno;
echo $errstr;

what could be the reason?
possibly that google is refusing your connection. :)
Dec 19 '07 #2

P: n/a
On Dec 19, 10:48 am, "Steve" <no....@example.comwrote:
"Chimanrao" <chiman...@gmail.comwrote in message

news:63**********************************@s8g2000p rg.googlegroups.com...
I am getting a connection refused error for the following piece of
code
$errno = 0;
$errstr= "testt";
fsockopen("www.google.com", 80, $errno, $errstr, 300);
echo $errno;
echo $errstr;
what could be the reason?

possibly that google is refusing your connection. :)
This happens to any website, not only for google.
Dec 19 '07 #3

P: n/a
Chimanrao wrote:
I am getting a connection refused error for the following piece of
code

$errno = 0;
$errstr= "testt";
fsockopen("www.google.com", 80, $errno, $errstr, 300);
echo $errno;
echo $errstr;

what could be the reason?
I am running php 4.4.4

Chiman
fsockopen is disabled in your server.

Hendri
Dec 19 '07 #4

P: n/a

"Chimanrao" <ch*******@gmail.comwrote in message
news:1f**********************************@s19g2000 prg.googlegroups.com...
On Dec 19, 10:48 am, "Steve" <no....@example.comwrote:
>"Chimanrao" <chiman...@gmail.comwrote in message

news:63**********************************@s8g2000 prg.googlegroups.com...
>I am getting a connection refused error for the following piece of
code
$errno = 0;
$errstr= "testt";
fsockopen("www.google.com", 80, $errno, $errstr, 300);
echo $errno;
echo $errstr;
what could be the reason?

possibly that google is refusing your connection. :)

This happens to any website, not only for google.
i figured...i was just fun'n ya.

anyway, check your firewall first.
Dec 19 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.