hi, i am using php version 4.1.3 and i was using php constants like _FILE_ and _LINE_ in echo statements but when i run these statements in browser they give error that constants are undefined but other php constants like one for php version and operating system work quite well.. what might be the possible reason for this?
drastic
0
Newbie Poster
Recommended Answers
Jump to Postplease post your code.
Jump to Postthis works for me:
define("_FILE_", "this is a file"); define("_LINE_", "this is a line"); echo _FILE_; echo "<br>"; echo _LINE_;
All 6 Replies
ryan_vietnow
13
Posting Pro
ryan_vietnow
13
Posting Pro
drastic
0
Newbie Poster
drastic
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
sjoscelyn
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.