Current location: Hot Scripts Forums » Programming Languages » PHP » Undefined Variable (Easyphp)


Undefined Variable (Easyphp)

Reply
  #1 (permalink)  
Old 02-25-06, 05:06 PM
johndapunk johndapunk is offline
Newbie Coder
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Undefined Variable (Easyphp)

ok, the problem comes with the error reporting, i know that. Here is some code from the php.ini
Code:
; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors
;
error_reporting  = E_ALL & ~E_NOTICE
It was originally 'error_reporting = E_ALL', but i changed it to what you see now. The problem is, it still returns the Undefined variables errors (http://john.is-a-geek.org/jvs/). Next i chose to change error_reporting to null or nothing, and as you would expect, i recieved no errors, when i say no errors, i mean ones that i would want to see (like a mysql_fetch_array error).

Help is appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-25-06, 06:05 PM
sensationdesigns sensationdesigns is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
put a phpinfo() at the end of that page, see what error_reporting is.

Make sure that is indeed what is currently in php.ini, and even though I am 99.567% sure you wouldn't need to, could try restarting apache too...

Lastly, make sure in the script there is no line (error_reporting()) attempting to change the value.
__________________
SonicMailer Pro - Professional PHP mailing list manager
Follow the development of version 3!
Exhaustive list of new & improved features being implemented!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-25-06, 06:51 PM
johndapunk johndapunk is offline
Newbie Coder
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
forgot about my function() that changed the value of the errors. thanx sensation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems getting PHP-Nuke setup correctly TravisT PHP 2 12-17-05 08:54 PM
using variable variables with multiple variables for parts of the name harlock PHP 7 07-26-05 08:35 PM
Notice: Undefined variable: row jozin PHP 3 05-12-05 03:44 AM
Include problem in C bkbenson C/C++ 4 02-08-05 05:24 AM
Notice: Undefined variable: netbakers PHP 2 01-17-05 09:03 AM


All times are GMT -5. The time now is 01:02 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.