PHP Classes
Icontem

Small fix.


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MS-Excel Stream Handler   All threads   Small fix.   (Un) Subscribe thread alerts  
Subject:Small fix.
Summary:Notice
Messages:2
Author:Dmitry Polushkin
Date:2005-11-24 12:31:50
Update:2009-10-16 03:40:35
 

  1. Small fix.   Reply  
Picture of Dmitry Polushkin
Dmitry Polushkin
2005-11-24 12:31:50
Notice and warning is bad. Set size = 0 between the lines:
function _xls_stream_write($data) {
and
if (is_array($data) && !empty($data))
.

The notice is always prints on screen is:
PHP Notice: Undefined variable: size in /path/to/excel.php on line 162

  2. Re: Small fix.   Reply  
Picture of Guilherme
Guilherme
2009-10-16 03:40:35 - In reply to message 1 from Dmitry Polushkin
The file excel.php will be the same like that:
(pt-BR o arquivo excel.php ficará assim)

function _xls_stream_write($data)
{
$size = 0;
if (is_array($data) && !empty($data))

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products