Solved

Notice: Undefined variable:

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now