I have a short and sweet PHP file to send myself an email. But as a stand-alone file, it does nothing. What else do I need to go with?
I need some other HTML/CSS coding to go with this but I just can't figure it out...
There are quite a few ways to set this up, so the exact way to do it is going to depend on your goals. If you're trying to run that PHP file from a site or using bash, take a look at this rundown from Stack Overflow and this write-up on include/require from W3. That's usually what is missing in these sorts of situations.
If you want this script to run at a specified time every day, then you need to set up CRON job. This is an easy way to get the server to just run the file directly!
I hope one of those works, but if you're trying to run this in a different context, let us know. If you want direct assistance coding something for your site, you can always reach out to our Managed Hosting Team for an estimate.
There are quite a few ways to set this up, so the exact way to do it is going to depend on your goals. If you're trying to run that PHP file from a site or using bash, take a look at this rundown from Stack Overflow and this write-up on include/require from W3. That's usually what is missing in these sorts of situations.
If you want this script to run at a specified time every day, then you need to set up CRON job. This is an easy way to get the server to just run the file directly!
I hope one of those works, but if you're trying to run this in a different context, let us know. If you want direct assistance coding something for your site, you can always reach out to our Managed Hosting Team for an estimate.