Results 1 to 3 of 3

Thread: Action Hooks

  1. #1
    Join Date
    Apr 2008
    Posts
    19

    Default Action Hooks

    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

  2. #2
    Join Date
    Mar 2008
    Location
    Des Moines, Iowa
    Posts
    655

    Default

    Quote Originally Posted by stephen_c01 View Post
    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!

  3. #3
    Join Date
    Mar 2008
    Location
    Des Moines, Iowa
    Posts
    655

    Default

    Ok, correction...
    This is the proper method to include files:
    include(ROOTDIR.'/includes/myfile.php');

Similar Threads

  1. Using Action Hooks to do something
    By RPS in forum Tips, Tricks & Howto's
    Replies: 9
    Last Post: 09-06-11, 01:16 PM
  2. WHMCS Action Hooks vs. Cpanel Hooks
    By mike2352 in forum Pre-Sales Questions
    Replies: 3
    Last Post: 05-18-09, 11:24 PM
  3. Action Hooks
    By hostwes in forum Customisation & Integration Questions
    Replies: 14
    Last Post: 02-08-09, 12:36 PM