I'm writing an ezine/followup script and I'm using a dailymail.php script to process the daily followup emails. The best way to run this script is by using wget as I don't want my users to need to know too much (like their home directory on the web host) to use the script. Running the script with wget will ensure it's executed from the same directory as the config.php file. The problem is, wget saves files with the output of the page it grabs. Even though dailymail.php produces no output it still creates a file of 0 bytes.
I don't really want to run dailymail.php from the commandline via a PHP command line interpreter as, like I said before, that would require my users to know their home directory (to include the config.php file with the database information)...
Does anyone have a better solution or perhaps enough knowledge of wget to provide a workaround? Basically it works perfectly other than the files being saved.
My script so far can be found at http://mfware.com/listmaildemo .. you can test it by entering "demo" as the password.
Please reply with your thoughts on a solution.