I'd like to include a PHP file into the gravityforms/entry_list.php file.
I'm including some custom code into this file which integrates with Twilio. Next to one of my fields, I have a custom link called 'SEND SMS', which when clicked, fires off an SMS to the number provided by my form user.
There are some variables in my Twilio PHP files which I'd like to include in entry_list.php, so that I can keep track of how many messages have been sent to each user and include that next to the SEND SMS link, so that it reads something like, SEND SMS (1), the number in parentheses being the number of times a message has been sent; a variable calculated in a Twilio PHP file. I must be missing something, though, since I can't seem to successfully include the file.
Is it possible to include a PHP file in another directory into this particular plugin file? If so, how?
include('path'); seems to be failing me, or else I'm just stupid.
Thanks in advance.