PHP Classes

garbage instead of file download from browser()

Recommend this page to a friend!

      PHPXBase  >  All threads  >  garbage instead of file download...  >  (Un) Subscribe thread alerts  
Subject:garbage instead of file download...
Summary:XbaseWritableTable::writeRecord send an unwanted header
Messages:1
Author:jorge
Date:2017-09-03 12:45:15
 

  1. garbage instead of file download...   Reply   Report abuse  
Picture of jorge jorge - 2017-09-03 12:45:15
In line 133 of function writeRecord in file XbaseWritableTable.class.php there is an invocation to flush($this->fp) instead of fflush($this->fp). Changing to fflush solves the problem of receiving garbage in the browser.

Same for lines 139 and 145 of deleteRecord and undeleteRecord respectively.