Include Path from Theme Folder

If you can’t use an absolute url to an include file due to server configuration you can use the ABSPATH WordPress constant:

require_once(ABSPATH .'/Connections/boatparts.php');

If ABSPATH is not defined you can use this:

require (dirname(__FILE__)."/makesessionid.php");

Leave a Comment