473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PHP - ExcelReader

Hi,

I keep getting these errors for at least 500 lines. Not sure what
exactly is wrong? The same exact script works just fine on my other
server.

Anyone else having the same problem? Any help would be appreciated.
"Notice: Uninitialized string offset: -512 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -511 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -510 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -509 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -508 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -507 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27"

Aug 20 '06 #1
4 9053
ad*******@gmail.com wrote:
I keep getting these errors for at least 500 lines. Not sure what
exactly is wrong? The same exact script works just fine on my other
server.

Anyone else having the same problem? Any help would be appreciated.
"Notice: Uninitialized string offset: -512 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27
<snip>

This is obviously error in the code; but one server error level is
set to ignore "Notice" type errors. <http://in.php.net/ref.errorfunc>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Aug 26 '06 #2

ad*******@gmail.com wrote:
Hi,

I keep getting these errors for at least 500 lines. Not sure what
exactly is wrong? The same exact script works just fine on my other
server.

Anyone else having the same problem? Any help would be appreciated.
"Notice: Uninitialized string offset: -512 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -511 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -510 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -509 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -508 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -507 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27"
Here is a possible gotcha related to oddness involved with accessing
strings by character past the end of the string:

$string = 'a';

var_dump($string{2}); // string(0) ""
var_dump($string{7}); // string(0) ""
$string{7} === ''; // TRUE

It appears that anything past the end of the string gives an empty
string.. However, when E_NOTICE is on, the above examples will throw
the message:

Notice: Uninitialized string offset: N in FILE on line LINE

This message cannot be specifically masked with @$string{7}, as is
possible when $string itself is unset.

isset($string{7}); // FALSE
$string{7} === NULL; // FALSE

Even though it seems like a not-NULL value of type string, it is still
considered unset.

Aug 27 '06 #3
But it works on one server and doesn't on the other. How is that
possible?
davie wrote:
ad*******@gmail.com wrote:
Hi,

I keep getting these errors for at least 500 lines. Not sure what
exactly is wrong? The same exact script works just fine on my other
server.

Anyone else having the same problem? Any help would be appreciated.
"Notice: Uninitialized string offset: -512 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -511 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -510 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -509 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -508 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -507 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27"

Here is a possible gotcha related to oddness involved with accessing
strings by character past the end of the string:

$string = 'a';

var_dump($string{2}); // string(0) ""
var_dump($string{7}); // string(0) ""
$string{7} === ''; // TRUE

It appears that anything past the end of the string gives an empty
string.. However, when E_NOTICE is on, the above examples will throw
the message:

Notice: Uninitialized string offset: N in FILE on line LINE

This message cannot be specifically masked with @$string{7}, as is
possible when $string itself is unset.

isset($string{7}); // FALSE
$string{7} === NULL; // FALSE

Even though it seems like a not-NULL value of type string, it is still
considered unset.
Aug 27 '06 #4
I forgot to mention I am using
http://sourceforge.net/forum/forum.php?forum_id=343882
on a linux server.
davie wrote:
ad*******@gmail.com wrote:
Hi,

I keep getting these errors for at least 500 lines. Not sure what
exactly is wrong? The same exact script works just fine on my other
server.

Anyone else having the same problem? Any help would be appreciated.
"Notice: Uninitialized string offset: -512 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -511 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -510 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -509 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -508 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27

Notice: Uninitialized string offset: -507 in
/home/christo8/public_html/admin/excelReader/oleread.inc on line 27"

Here is a possible gotcha related to oddness involved with accessing
strings by character past the end of the string:

$string = 'a';

var_dump($string{2}); // string(0) ""
var_dump($string{7}); // string(0) ""
$string{7} === ''; // TRUE

It appears that anything past the end of the string gives an empty
string.. However, when E_NOTICE is on, the above examples will throw
the message:

Notice: Uninitialized string offset: N in FILE on line LINE

This message cannot be specifically masked with @$string{7}, as is
possible when $string itself is unset.

isset($string{7}); // FALSE
$string{7} === NULL; // FALSE

Even though it seems like a not-NULL value of type string, it is still
considered unset.
Aug 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Hemanth | last post by:
Hello there, I'm trying to read an excel worksheet (with more than 5000 rows and 30 columns) using PHP. I'm using the "excelreader" script I found over the web -...
1
kr33
by: kr33 | last post by:
Hi All, I need to be able to read data from specific cells in a XLS file, i need these values to then be stored in an xml document which will be used by my main page written in php, to draw a bar...
2
by: sbettadpur | last post by:
hello everybody, can anybody have solution for reading excel from php. my requirement is like this : Initially i have to read the excel file and i need to insert that values into database...
4
by: stephen | last post by:
Hi all, I am working with Excel. I read an excel document using ExcelReader and lets say it has 10 columns. I have to read each record and based on a specified column peform some activites and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.