Results 1 to 5 of 5

Thread: [Resolved] Shut off Notices?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    [Resolved] Shut off Notices?

    I'm using this code:

    Code:
        if ($_REQUEST['action'] == 'updatewidth') {
            //set width cookie:
        }
    Now, normally I wouldn't get a warning or notice with this on my webserver, but on my machine (where I test my pages), I keep getting:

    Notice: Undefined index: action in C:\location\to\work.php on line 2
    I'm willing to bet there's a way to shut this off in the php.ini. Can anybody tell me which setting it is?
    Last edited by The Hobo; May 5th, 2003 at 03:07 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    yes it is the error_reporting. this link in the ini file

    error_reporting = E_ALL & ~E_NOTICE

    just uncomment it if it is commented.

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by phpman
    yes it is the error_reporting. this link in the ini file

    error_reporting = E_ALL & ~E_NOTICE

    just uncomment it if it is commented.
    Doesn't seem to work. Is there anything else I have to do?

    I tried commenting out this line:

    error_reporting= E_ALL;
    But still no luck.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by The Hobo
    Doesn't seem to work. Is there anything else I have to do?

    I tried commenting out this line:



    But still no luck.
    Bah, it did work!

    I forgot Ctrl + S doesn't work in Notepad.

    Thanks, phpman!
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no prob

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