I'm having trouble calling a php file from within a php file. What I'm trying to do is create a shortcode that will call a php file that will display some content on a page.
The shortcode part works, because I have displayed something simple to test that it's working. I have used include in the past, but that was for when I wanted to use a function from another file. I want the whole file to run, not a function.
I humored myself and tried include("file.php") and include file.php and neither works. From what I've read the exec command should work, but that hasn't worked for me either.
exec('php file.php') is an example of what I've tried.
Thanks for any suggestions.