SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    always learning . . .
    Join Date
    Nov 2003
    Location
    UK
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help get CzarQuery working

    Can any one help me please.

    I am trying to get CzarQuery working.

    However I am getting this error:

    PHP Warning: fread() [function.fread]: Length parameter must be greater than 0. in c:\WebSites\tjsaynor\tjsaynor.co.uk\czarquery\czarquery.php on line 405
    The line is:

    Code:
    $tmp.=fread($this->_sk, $stat["unread_bytes"]);
    The connection to the server seems to work but I am not sure why the script fails here.

    The server returns information on this site so must be able to.

    Files attached with correct Ip/port config.
    Attached Files Attached Files

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,412
    Mentioned
    149 Post(s)
    Tagged
    4 Thread(s)
    If I remember well it happens when you fread an empty file.


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
  •