Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notice: Use of undefined constant ???

Status
Not open for further replies.

sharapov

MIS
May 28, 2002
106
US
I just installed latest PHP, Zend, and MySQL on Windows XP Proffesional. The register_globals are on. When I try to run quiry from a database I get the following error (example):

Notice: Use of undefined constant FILENAME_INFO_PRODUCT - assumed 'FILENAME_INFO_PRODUCT' in /home/bin905/config/header.php on line 4

Notice: Use of undefined constant DIR_INCLUDES - assumed 'DIR_INCLUDES' in /home/bin905/config/header.php on line 4

etc.

Before, when I was running PHP Version 4.2.1 and MySQL 3.23.49 everything was fine. I am pretty sure that this is a setting issue. Does anybody know how to fix this?

Thanks
 
what have the line 4 of the header.php script?
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
That means that you have used a variable like $_POST[FILENAME_INFO_PRODUCT] where it should be $_POST['FILENAME_INFO_PRODUCT'] or $_POST["FILENAME_INFO_PRODUCT"]. This applies to all associative arrays. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top