Php include not working? function not being included

Sometimes the current directory isn’t what you expect it to be, such as when you include a file from an included file. I like to use $_SERVER[‘DOCUMENT_ROOT’] on my includes so that I can always reference them absolutely from the root of my site: If your includes directory is above your document root, you can use .. to still … Read more