Dreamweaver will create include file reference the virtual function if you set the site definition to create links relative to the site.
change that to create links relative to the document and it will use the proper require_once() function.
On the Local Info tab of the Site Definition, change the "Create Links relative to" option to document.