tags:

views:

48

answers:

4
+2  Q: 

PHP code question?

What does MYSQL mean in the following code.

require_once (MYSQL);
+8  A: 

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

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

to get the 'real' include.

mjaz
or, you can try to `echo MYSQL;` to get the value.
silent
+1  A: 

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

Ignacio Vazquez-Abrams
+1  A: 

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.

Chacha102
+1  A: 

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

Brock Batsell