Page 1 of 1
failed to open stream: Bad file descriptor
Posted: Thu Nov 02, 2006 10:50 pm
by ravi
Code: Select all
<html>
<head> </head>
<body>
<?php
$handle = fopen("http://www.rediff.com/rss/inrss.xml", "r");
?>
</body>
</html>
Code: Select all
Warning: fopen(http://www.rediff.com/rss/inrss.xml): failed to open stream: Bad file descriptor in c:\ecko\web\test\simple.php on line 6
what is the solution to access the files which is there on other webservers.
Posted: Fri Nov 03, 2006 3:08 am
by volka
Is there a firewall blocking the connection?
Posted: Fri Nov 03, 2006 3:25 am
by ravi
some ISA server is there.The system is conected to proxy server.
what I should do if firewall is there.
Posted: Fri Nov 03, 2006 3:34 am
by volka
What does
Code: Select all
<?php
error_reporting(E_ALL); ini_set('display_errors', true);
$sd = fsockopen('www.rediff.com', 80, $err, $errno);
echo "$sd = fsockopen('www.rediff.com', 80, $err, $errno);";
?>
print?
ravi wrote:what I should do if firewall is there.
Ask the admin of the firewall server.
Posted: Fri Nov 03, 2006 4:05 am
by ravi
Warning: fsockopen(): unable to connect to
http://www.rediff.com:80 in c:\ecko\web\test\simple.php on line 6
I have asked administrator's,they said everything properly set(username and password).
Posted: Fri Nov 03, 2006 4:06 am
by volka
What username and password? Not in your script.
Posted: Fri Nov 03, 2006 4:15 am
by ravi
MY LOGIN NAME AND PASSWORD WERE SET PROPERLY IN PROXY.
This question actually I should no ask ,but I am asking,feel free
1) Your system is conected to proxy server or not.
2) In your system this code is working
thank you.
Posted: Fri Nov 03, 2006 4:24 am
by volka
ravi wrote:
MY LOGIN NAME AND PASSWORD WERE SET PROPERLY IN PROXY.

Please ask the administrator if you/your script has to authenticate against the proxy server and if how.
ravi wrote:1) Your system is conected to proxy server or not.
2) In your system this code is working
proxy: yes, proxy-authentication: no
Posted: Fri Nov 03, 2006 4:53 am
by ravi
1) I asked the system adminstrator.He said that you have already authenticated with the proxy server with
the following username ="bravi" and password = "bravi123".
2)does I need to write a script to authenticate?
3)can you tell me how to write that script.what is the material available.
thanking you
ravikumar
Posted: Fri Nov 03, 2006 5:00 am
by volka
Who are quoting?
ravi wrote:
1) I asked the system adminstrator.He said that you have already authenticated with the proxy server with
the following username ="xxxxx" and password = "xxxxx".
I have been authenticated? No
Sorry, can't help you. Don't even understand you.
Posted: Fri Nov 03, 2006 7:24 am
by Chris Corbyn
ravi wrote:
1) I asked the system adminstrator.He said that you have already authenticated with the proxy server with
the following username ="xxxxx" and password = "xxxxx".
2)does I need to write a script to authenticate?
3)can you tell me how to write that script.what is the material available.
thanking you
ravikumar
I hope those aren't actual credentials.