Is it possible to use require_once $_SERVER['DOCUMENT_ROOT'] . '/defines.php';
I keep getting an error on it.
I tried
require_once ($_SERVER['DOCUMENT_ROOT'] . 'htdocs/comments3/defines.php');
but it still won't work please help me.
im trying to recreate the project of https://www.youtube.com/watch?v=X_fJoLdbVyM&list=PLyKBLKYqadGlmL6QLKCicUp9tQsybUII5 its a comment box using ajax[Javascript jQuery JSON PHP mysql] but on episode 6 i cant follow it coz it starts erroring out for the darn defines.php im using C:\xampp\htdocs\comments for my files path