Probably something simple

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
minto
-


Joined: 30 Jul 2003
Posts: 1

PostPosted: Sat Sep 27, 2003 3:05 pm    Post subject: Probably something simple Reply with quote

A chatbox on my server gives me this notice:
Quote:
Notice: Undefined variable


Is there any way to stop php telling me about this, as it does not affect the script at all.

Cheers.
Back to top View user's profile Send private message
flippy
-


Joined: 17 Sep 2003
Posts: 1

PostPosted: Sat Sep 27, 2003 3:36 pm    Post subject: Reply with quote

If there is an Undefined variable.. then that means your not using it. You can delete it to get rid of that message.. *I think*
_________________
FLiPPY_
Back to top View user's profile Send private message AIM Address
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Sep 28, 2003 4:26 pm    Post subject: Reply with quote

This is what I do for a quick fix.
On the page in question, put this in somewhere:
Code:
error_reporting (E_ERROR | E_WARNING | E_PARSE);

You can also change your php.ini file (in WINDOWS folder) to hide notices,
but I prefer the above method instead.

Hope that helps.

P.S. - For ref. go to http://us2.php.net/error_reporting
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group