export to csv

J

Jeff

Guest
I recently downloaded v3.0 beta and everything works well except the "export to csv" function. I get a fatal error that says "Call to undefined function: ob_clean() in ...\form.php on line 319"

Any suggestions on what I need to adjust in the script to get this to work?

Thank you for any help.

 
E

Eugenio

Guest
Jeff wrote:

> I recently downloaded v3.0 beta and everything works well
> except the "export to csv" function. I get a fatal error that
> says "Call to undefined function: ob_clean() in ...\form.php on
> line 319"
>
> Any suggestions on what I need to adjust in the script to get
> this to work?

The problem is related to the PHP version, PHP version prior to 4.2.0 has not this function implemented.
This is a lack of documentation in version 3.0 beta, which is supposed to work with PHP version >= 4.0.5



(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
B

Brad Dobson

Guest
I asked the oracle (google) and an answer was provided:

//ob_clean();^M
ob_end_clean();^M
ob_start();^M

Mine was broken too and modifying form.php worked.

Good luck,

Brad.
 
E

Eugenio

Guest
Brad Dobson wrote:

> I asked the oracle (google) and an answer was provided:
>
> //ob_clean();^M
> ob_end_clean();^M
> ob_start();^M
>
> Mine was broken too and modifying form.php worked.

You are right, thaks for reporting it, ob_end_clean() is supported from PHP 4, changing:
ob_clean();
to
ob_end_clean();
in form.php should be enough, without adding ob_start.



(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
Top