Article View: alt.comp.lang.php
Article #51bad file descriptor
From: roel
Date: Tue, 02 Oct 2001 22:30
Date: Tue, 02 Oct 2001 22:30
18 lines
1851 bytes
1851 bytes
Can anybody tell me what's wrong with this script?
<?
$fp = fopen ("http://www.yahoo.com", "r");
if($fp)
print("ok");
else print("error");
?>
I get the error:
Warning: php_hostconnect: connect failed in c:\phpdev\www\site\bla.php on
line 2
Warning: fopen("http://www.datablock.be/wait.php","r") - Bad file descriptor
in c:\phpdev\www\site\bla.php on line 2
error
Thanks
Technical Details
Message-ID:
<8eru7.83033$6x5.18369854@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f92b,6c2e2e73d57ca0ec,start X-Google-Attributes: gid10f92b,public X-Google-Thread: 1107bb,6c2e2e73d57ca0ec,start X-Google-Attributes: gid1107bb,public X-Google-Thread: 1156bd,6c2e2e73d57ca0ec,start X-Google-Attributes: gid1156bd,public X-Google-Thread: 104359,6c2e2e73d57ca0ec,start X-Google-Attributes: gid104359,public X-Google-Thread: fc70a,6c2e2e73d57ca0ec,start X-Google-Attributes: gidfc70a,public X-Google-ArrivalTime: 2001-10-02 15:30:29 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail Reply-To: "roel" <roel@datablock.be> From: "roel" <roel@datablock.be> Newsgroups: alt.comp.lang.php,alt.php.sql,cz.comp.lang.php,de.comp.lang.php,it.comp.www.php Subject: bad file descriptor Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <8eru7.83033$6x5.18369854@afrodite.telenet-ops.be> Date: Tue, 02 Oct 2001 22:30:28 GMT NNTP-Posting-Host: 213.224.239.243 X-Complaints-To: abuse@pandora.be X-Trace: afrodite.telenet-ops.be 1002061828 213.224.239.243 (Wed, 03 Oct 2001 00:30:28 MET DST) NNTP-Posting-Date: Wed, 03 Oct 2001 00:30:28 MET DST Organization: Telenet Internet