PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

PHP error - use of undefined constant at line x... what does this mean?


This error means exactly that - you are using a constant that has not been declared anywhere in the script.

Now, if you mean to be using constants in the script, then you simply have forgotten to define it, so make sure that you do so.

More often than not however, this happens when you forget to put the $ infront of a variable name, and so you just need to insert the $ immediately before the name of that variable to fix the error.

Comment on this Question and Answer >>>

ASK A QUESTION

More errors PHP Questions

I get this error every time I execute a php program. PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'mysql' already loaded in Unknown on line 0

I get a parse error - unexpected ; at line x message. What is this?

How can i fix my internet webpage?

Dear all, i am using the Ireport to do the interface of my report and i want to combine it with the ATK Framework using Zend studion. but when i click "Print"(cetak), the page is blank. and the url showing the nokp=array. is there anything wr

I get a PHP warning for array to string conversion - what is this?



Custom Search