|
-
May 5th, 2003, 02:49 PM
#1
Thread Starter
Stuck in the 80s
[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.
-
May 5th, 2003, 02:56 PM
#2
Frenzied Member
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.
-
May 5th, 2003, 03:05 PM
#3
Thread Starter
Stuck in the 80s
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:
But still no luck.
-
May 5th, 2003, 03:06 PM
#4
Thread Starter
Stuck in the 80s
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!
-
May 5th, 2003, 03:11 PM
#5
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|