Im building a scheduling client/server setup and ive run into a bit of a problem with the final phase of the server side scripts. Ive built up these files I want to send to people who sign up and I was hoping someone can tell me the best way I can send them these files when they become ready, i.e. the user is probably not on my site.
What I really need to know is what info to collect from the user, Just the IP address or do I need more.
And how to set up the headers and stuff to send the file to the user. Also I imagine that people behind routers will cause me problems, any advice to alleviate those problems? Thanks guys.
Here is the code I already have, sends the file fine, I assume it is putting in all sorts of other info by default.
$payload=CreateNewAnnouncement($show);
$message= header("Content-type: application/ptc");
$message.= header("Content-Disposition: attachment; filename=thingy.ptc");
$message.= $payload;
echo $message;$payload=CreateNewAnnouncement($show);