I have index.php and tools/scripting.php. I want to include scripting.php into index.php but I keep getting error messages. I already tried using the $_SERVER and also defining a variable as the full file path but neither worked.

Is there another way to include PHP files in another directory?