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 have 2 forms in one website... What do I name the php files for each form? The first php file is named: send_form_email.php, what do I name the second, or do they both go in the same php file?

Is it possible to create php programs and view them if my operating system is DOS, not unix? Whether I create a DocumentRoot of C:\public_html, or C:/public_html, in my httpd.conf file, the result is: When go to http://127.0.0.1, I see: Index of

what is the latest release version of PHP.

I get the error message headers already sent, what does this mean?

Parse error in PHP - unexpected T_variable at line x. What is this error?



Custom Search