Results 1 to 20 of 20

Thread: Notice

  1. #1

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734

    Notice

    I updated PHP, and when I installed, I started to reason a tons and tons of notices in my scripts all about undefined things, but the script works.

    I reinstalled and stopped the reporting of notices, my question is, does it matter? my online server does not report notices either, infact I think most dont. But should I fix these things or what?

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    you could, all it is is just a warning. you could define them all or turn off the notices. also what version is your ISP on? the warnings didn't start until php 4.1.x

  3. #3

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    well my online server has the newest version, though, I dont own, it or anything I just use it. Its Hostrocket, anyway even your script was generating tons of warnings

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    yup it will. I didn't sdefine all of them as I have it turned off on mine as well.

  5. #5

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    still cant get it working BTW, it refuses to find the txt file. I need a linux box

  6. #6
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    let me find what folder it looks in. did you upgrade mysql?

  7. #7
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    read this as it might explain where it is. I would have used temporary tables but my ISP doesn't allow that so I was stuck. if I jsut used a regular insert statement it would timeout if the file was over 10,000 lines.

    http://www.mysql.com/doc/en/LOAD_DATA.html

    you might wanna try to take out the LOCAL and see what it does

  8. #8

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    yup, I sent you a pm on NXS, it was aout the notices, I didnt know what was going on You can disregard it now

  9. #9
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    ok thanks, I will still look at it and see what it said.


    hmmm very interesting. I will see if I can fix that. hmm are you sure tha tis my program? because line 322 is in the middle of 15 lines of pure html.

  10. #10

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    no it was mine, I was wondering what was happening, before I learn about the notices.

  11. #11

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    WOOT. I got it to work!

    I had to change to 'C:/mysql/$datafile'

    and then I stuck the file in there, and it works now.

  12. #12
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    well usually the notices that come up are warnings was undefined variables. but indexes are wierd

  13. #13

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    two more errors to sort out

    Fatal error: Call to undefined function: create_bargraph() in C:\Program Files\Apache Group\Apache2\htdocs\test\graph.php on line 139

    Fatal error: Call to undefined function: create_bargraph() in C:\Program Files\Apache Group\Apache2\htdocs\test\graph.php on line 180

  14. #14
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    holly shiz nit..

    I see, so that file must not ahve been updated. well itsn't that all cool and everything. I will send you a link to download the newest version. over at NXS

  15. #15

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    Originally posted by phpman
    well usually the notices that come up are warnings was undefined variables. but indexes are wierd
    Could it because I never use single quotes where you guys seem to

  16. #16
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no usually on those will be variables that = flase or be empty. you could use them it won't hurt. without seeing the code it is hard to tell what it is.

  17. #17

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    well this is the line its complaining about

    $user=$myrow["user"];

  18. #18
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    nah that should be ok. maybe it is the line above or below it?

  19. #19

    Thread Starter
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    the line above, and below are basicly the same as above just different values

  20. #20
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    that doesn't make since as I use the exact samething

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width