I think this has to be a very simple question but I am not finding any answers for what I am trying to accomplish.
I have a PHP file which will send out emails. This part works. The thing is, I need this PHP file to "run" every 5 minutes. My problem is not with the scheduling, I'm fairly certain I understand how to do that. My issue is with the "running" of the PHP file. My mind is totally void of any information of how to "execute" a PHP file rather than just make it open in a browser and spit its code everywhere. I know that this PHP file works because when I am working on it in Dreamweaver and I click the "Discover" link where it says "Dynamically-related files for this document may have changed and should be re-discovered by the server" it executes this PHP file and I get my emails sent. I've tried going through command line like THIS but all it does is spit out the php code as if I was running it in a browser. Nothing actually sends. Is there some way to change the way the PHP file itself is formatted that would make it do this? What is Dreamweaver doing when I click "Discover" that makes it work? I feel like this should be a simple thing and its insane that I am not understanding it.....