getting error Undefined offset and Uninitialized string offset while passing the data using excelReader to web browser.(multiple sheets)
<p>I am new in php. These are the problems I face:</p>

<ol>
<li><p>I am using the Excel reader to show data an Excel file (received from others) into a web browser. But when I test it the error shows:</p>

<pre><code>Notice: Uninitialized string offset: 1148697900 in C:\wamp\www\excel_reader\reader.php on line 482
Notice: Uninitialized string offset: 1148697901 in C:\wamp\www\excel_reader\reader.php on line 482
Notice: Uninitialized string offset: 1148697902 in C:\wamp\www\excel_reader\reader.php on line 485
Notice: Undefined offset: 0 in C:\wamp\www\excel_reader\example.php on line 26
</code></pre></li>
<li><p>If I create a new Excel file or move all the sheets to a new <code>.xls</code> file, it works perfectly. Does anyone know how to solve it? </p></li>
</ol>

<p>this is the coding for the error line.(reader)</p>

<pre><code> $numChars = ord($this-&gt;data[$spos]) | (ord($this-&gt;data[$spos+1]) &lt;&lt; 8);
 //echo "i = $i pos = $pos numChars = $numChars ";
  $spos += 2;
  $optionFlags = ord($this-&gt;data[$spos]);
  $spos++;
                                            $asciiEncoding = (($optionFlags &amp; 0x01) == 0) ;
   $extendedString = ( ($optionFlags &amp; 0x04) != 0);

   // See if string contains formatting information
    $richString = ( ($optionFlags &amp; 0x08) != 0);
</code></pre>

<p>for .php:</p>

<pre><code>   &lt;table&gt;
&lt;?php
$excel-&gt;read('test.xls');    
$x=1;
while($x&lt;=$excel-&gt;sheets[0]['numRows']) {
  echo "\t&lt;tr&gt;\n";
  $y=1;
  while($y&lt;=$excel-&gt;sheets[0]['numCols']) {
    $cell = isset($excel-&gt;sheets[0]['cells'][$x][$y]) ? $excel-&gt;sheets[0]['cells'][$x][$y] : '';
    echo "\t\t&lt;td&gt;$cell&lt;/td&gt;\n";  
    $y++;
  }  
  echo "\t&lt;/tr&gt;\n";
  $x++;
}
?&gt;    
&lt;/table&gt;&lt;br/&gt;
</code></pre>
