I'm currently working on a PHP script and I'm encountering some difficulties in including external PHP files in my code. I have tried a few different approaches, but none seem to work properly. I'm not sure what I'm doing wrong.
Here's a bit more context for you: I have a main PHP script that consists of several functions and classes. Now, I want to use some code that I have written in a separate PHP file. The file I want to include is located in the same directory as my main script.
I have tried using the include() and require() functions, but it seems like the code from the external file is not being executed or recognized. I have also made sure that the file paths are correct.
Is there a specific syntax or method that I should be using to include external PHP files? Any insights, suggestions, or examples would be greatly appreciated.
Thank you in advance for your help!