Solved

Notice: Undefined variable:

Posted on 2013-01-14
3
239 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now