
November 8th, 2004, 05:31 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 16
Time spent in forums: 2 h 12 m 51 sec
Reputation Power: 0
|
|
|
warning/error message from PHP script points to non existent line number
Hi all,
I come accross this problem when running my scripts on a different web server from the one I developed them:
There is a warning message like the following:
Warning: Unable to jump to row 0 on MySQL result index 6 in /var/www/conference/toolkit/helper.php on line 921
In Summary:
My question does not relate to the warning message itself. I am confused by the line number. Line number 921 simply does not exist on any of the two scripts involved in this operation.
In Detail:
What I am doing is requesting from the web server a script name X.php. This script inludes at the beginning (using the require_once function) a php file that is called helper.php. It seems that this hepler.php file produces a warning message. The helper.php file only has 700 lines. It is basically a collection of functions that are called on my site by many different scripts. I include this helper.php file almost on every script of the site. I would appreciate any feedback on this.
Additional comments:
I would also like you to comment about my idea to put all the functions of the site to one file with 700 lines and include it at the beginning of all scripts. Is it common practice? Do you think it slows down my site considerably? What about the benefits of simply including this helper.php file at the beginning of all scripts? Does this outweight the cost of slowing down the site?
Thanks a lot.
daidalus13
Last edited by daidalus13 : November 8th, 2004 at 11:04 AM.
Reason: title of Post is more accurate now
|