timsellers.net - archive (blog post)| blog home | main index

timsellers.net/blog

Part of me wants to break down barriers, set people free and make the world a better place. A bigger part of me wants to sit on the sofa, drink tea and play through old Nintendo games.

- - - o O o - - -
 

27/08/09 : Tim's tip of the day (#2)

If you hand-code everything, including a blog, you will probably use loads of php-includes to avoid having to rewrite the same bits of code again and again (and to avoid having to re-write practically everything if you want to make any global changes). I would advise anyone doing this to use the variable $_SERVER["DOCUMENT_ROOT"] rather than the actual server path. This will save you the bother of having to change the code on every single page if you move servers, which would be seriously fucking annoying.

I hope you find this advice useful.


Posted by Tim at 09:58 [ permalink ]
Categories: Blogging, webstuff, programming
Comments [ hide comments ]

New comments disabled due to spam

 

Previous post |  Home |  Archive index  | Next post ]