Solved

Notice: Undefined variable:

Posted on 2013-01-14
3
248 Views
Last Modified: 2013-01-14
Hi,

When I load this site on my web server it works just fine.

When I load it in XAMMP, locally on my computer, I get this error: Notice: Undefined variable:

The variable is on my config.php page which is included on every page, right at the top.

It does parse the variable, but gives me the notice:

1. How do I get rid of it?
2. Why does it parse the variable, and then give me an error that It's undefined?

Thanks
0
Comment
Question by:Computer Guy
3 Comments
 
LVL 11

Accepted Solution

by:
un1x86 earned 500 total points
ID: 38773605
Hi

How about more information:

- Show us your code where the notice is being produces
- do you have register_globals on on the Webserver or XAMMP?


You can set an error_reporting that is excluding notice messages with

error_reporting(E_ALL ^ E_NOTICE);

Open in new window


But I'd rather try to find out why this notice is being printed. Please show us some of your code for that
0
 
LVL 30

Expert Comment

by:IanTh
ID: 38773610
you need to show us the line of code I reckon it will it will be a path problem
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38773616
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question