SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    always learning . . .
    Join Date
    Nov 2003
    Location
    UK
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    localhost undefined index probs

    Hi all, have a script helped by a friend.

    On my PHP hosting the script runs ok. with no reported problems.

    On my localhost IIS supported PHP i get a few undefined index's. They dont cause problems to to working. just be much better if they didnt show. really gets in the way and dont understand why they do show.

    Please advise, i hate annoying things like this

  2. #2
    SitePoint Enthusiast probonic's Avatar
    Join Date
    Apr 2002
    Location
    Manchester, UK Insanity: 97%
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are two possible methods:

    1) add "error_reporting(0);" to the top of the scripts
    2) prepend offending statements with an "@" symbol (that will suppress any errors it generates).
    Phil Evans - CEO, Probonic Networks
    pevans@probonic.com
    http://www.probonic.com
    AIM: probonic | MSN: support@probonic.com | T: +44 07779992043

  3. #3
    always learning . . .
    Join Date
    Nov 2003
    Location
    UK
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    error_reporting(0) will stop all error's though wont it. Just to be honest wondered why happens on my localhost but not on my hosting. Either is an error or not.

  4. #4
    SitePoint Enthusiast probonic's Avatar
    Join Date
    Apr 2002
    Location
    Manchester, UK Insanity: 97%
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you can tell us what exactly the errors are? Then we can have a better stab at working out why it's happening.
    Phil Evans - CEO, Probonic Networks
    pevans@probonic.com
    http://www.probonic.com
    AIM: probonic | MSN: support@probonic.com | T: +44 07779992043


Bookmarks

Posting Permissions

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