PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 8th, 2004, 05:31 AM
daidalus13 daidalus13 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 16 daidalus13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old November 8th, 2004, 01:41 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: Canada
Posts: 331 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 7 sec
Reputation Power: 6
Quote:
Originally Posted by daidalus13
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?

That's fine and it's normal.

As for the line number, if I remember right when you require or include a file it appeneds its to the current one, and the errors sometimes carry over. Depending on how the script is written, I can't be sure unless I see the full code.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > warning/error message from MySQL points to non existant line number


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT