I have been taught that you should almost always try and use relative paths (e.g. includes) because they grow with your app and its home.
Are there any times where absolute paths are better?
I am reading a book where the author made a good portion of his “includes” absolute paths, and when I put the code into NetBeans - where my project folder apparently is considered “root” in terms of paths - everything was broken! (Had he used relative paths, I could have just dumped his code into either my local pc’s development environment or in my web hosting account and there would be no difference AND things would have run the first time…)