3

What does MYSQL mean in the following code.

require_once (MYSQL);
php
  • 151
  • 1
  • 2
  • 4

4 Answers4

9

Looks to me like MYSQL is a constant. Look for something like this:

define('MYSQL', '/some/path/');

to get the 'real' include.

mjaz
  • 471
  • 3
  • 9
1

It's most likely a constant defined via define().

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
1

MYSQL would be a constant, defined by somewhere saying:

define("MYSQL", "/path/to/the/mysql/file.php");

Then, when they go to include/require it, it takes the defined path, and include/requires it.

Tyler Carter
  • 60,743
  • 20
  • 130
  • 150
1

It's (almost assuredly) referring to a constant that's define()d elsewhere.

Brock Batsell
  • 5,786
  • 1
  • 25
  • 27