stephen_c01 Posted May 7, 2009 Share Posted May 7, 2009 Does anyone know the working directory for actionhooks.php I am trying to include some external scripts and i dont want to use an absolute path. Thanks -sc 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 10, 2009 Share Posted December 10, 2009 Does anyone know the working directory for actionhooks.php I am trying to include some external scripts and i dont want to use an absolute path. Thanks -sc It's been a few months, but I was looking for the same answer. I used getcwd() to tell me the working directory is whmcs/admin/. To include a file in includes. I used include('../includes/filename.php'); Hope this helps! 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted December 11, 2009 Share Posted December 11, 2009 Ok, correction... This is the proper method to include files: include(ROOTDIR.'/includes/myfile.php'); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.