in DW you should set the Links Relative To setting to use Document.
using Site will cause linked php files to use the virtual() function which is not sup;sorted on most servers.
Buy using Document, DW will use the more globally supported require_once() function.