I have a MAMP setup on my OSX. I'm following advice from the thread here:
PHP: possible to set constants in default php.ini file
I have found the correct php.ini file and added this bit under the directories section:
auto_prepend_file = "/Applications/MAMP/htdocs/constants.php" //standard MAMP setup URL
Then, in constants.php:
define(‘ABS_PATH’, '/Applications/MAMP/htdocs');
However, for example on a simple include, ABS_PATH is not defined (and thus shows up as ABS_PATH if I put the below URL in a variable and echo out the result)
<?php include ABS_PATH."/includes/file.php"; ?>
Am I missing something specific to MAMP, or just a small error somewhere? I feel like I'm following the above post advice exactly as stated. Thanks.