473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

connection refused error

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
4 5372

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alex Hunsley | last post by:
I am using the smtp module to send emails via a local SMTP server on our network. I am failing with "connection refused" error, even though we definitely have an smtp server running on port 25! ...
8
by: Josh Close | last post by:
I'm using the smtplib module and I keep getting this error: (111, 'Connection refused') What could be causing this? I've tried it from a different computer and it seems to work, but not from this...
0
by: Sylvain Thenault | last post by:
Hi ! I got a connection refused when I try to upload a package using "python setup.py register". However login using the web interface works well. Does anyone has the same problem or is it a...
1
by: niceyama | last post by:
Dear c.l.p, I have recently been doing the tutorial of Python and everything is well, i'm upto the pass section. Anyway, when I try to launch idle now I get the error message: Socket Error:...
1
by: Parag Mahajan | last post by:
Hi, I am able to browse my ASP.Net webapplication from IE (maybe because of some settings). But when I try to see the same page from a Firefox browser (non- IE browser), I am getting "Error...
8
by: hufaunder | last post by:
I have a website that consumes a webservice. Both of them are in the Default Website folder. I can execute the service without any problem when I go to the test page http://localhost/Service.asmx....
5
by: OJ | last post by:
Hi, I am at a loss here, I have a c# asp.net website which connects to a remote SQL Server 2000 db via a connection string. If I set the website up in the filesystem and use the inbuilt cassini...
0
by: devtalex | last post by:
hello all!... i'm novice here... I've such kind of issue. The purpose of my code is to copy a number of files by FTP (using different ports every time). There are different numbers of files...
0
by: lesmith | last post by:
db2 governor failing with connection refused -------------------------------------------------------------------------------- We are trying to test using the db2 governor (udb v8) and get a...
1
by: rhyme2ri2 | last post by:
Hi all, Whenever i try to use 'quote nlst' or 'quote list' in ftp. It gives me this error 425:Can't establish connection. Connection refused'. It works fine when I use ls or dir commands. But I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.