Solved

Notice: Undefined variable:

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

770 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