SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am trying to guess what this error message means, I can't open any http connection using php, because I receive a "bad file descriptor" error. Also, it doesn't happen with all servers, is it a server configuration thing?
    Last edited by kentaurus; Feb 18, 2001 at 17:16.

  2. #2
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what code are you using... if we had an example people here might be able to help focus it down a bit..
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  3. #3
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure, example

    <?
    $fd = fopen("http://www.php.net/", "r");
    fclose($fd);
    ?>

    Result:

    Bad file descriptor on line 1

    =====

    It doesn't want to open any http connection, it's the same with file, readfile, fopen, etc. I am still trying to guess what can be causing it...

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Does the error still occur if you remove the fclose() call?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •