Jump to content

why are my includes not working?


dotolee

Recommended Posts

Hi. I can't figure out why I'm getting a bunch of notices about using undefined constants when i try to load my login page.

Here's one of the error messages:

( ! ) Notice: Use of undefined constant LOG_ERRORS - assumed 'LOG_ERRORS' in C:\wamp\www\pr\ssys\Errors.php on line 90

 

Line 90 in errors.php looks like:

if (LOG_ERRORS)

{

$error_log = 'Date :'.date('Y-m-d H:i:s');

 

In my login page, the includes look like this:

 

include_once (BASE_PATH.'includes/definitions.php');

 

As a test, I've included an echo statement at the end of my include to see if it prints. It does, but only after a few "notices" about undefined constants.

can someone point me in the right direction?  this is a web site that is working in production as is... i'm just tyring to set it up in my local environment to work on some additional code.

 

Link to comment
https://forums.phpfreaks.com/topic/245165-why-are-my-includes-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.