| |||||||||||
| |||||||||||
Expiry Script Posted by TedH (TedH), 28 June 2006 You spent a lot of money going on Graham's course, then considerably more time developing a Perl application. Often webmasters have a script or system which they license out on a yearly basis to clients hosted on their web server. After all, you've done a lot work here and would like to see some reward for it, recoup your expenses and pay your mortgage.I've received a lot from this forum and thought it might be nice to contribute something for a change. This is a script I've written and use for license expiry on a system I've put together for client usage. It's quite simple. I've tried to see if I could break it and it's stood the course. There may be simpler ways of doing this, but then I'm not that expert at it. You can incorporate this by a require (name it to something obscure) in your main script. I use an external HTML page for notification (it looks nicer). There's no name to this script - make up your own. Code:
Enjoy - Ted Posted by admin (Graham Ellis), 28 June 2006 Ted, Thank you. I'm in Dublin / hotel connection just at the moment so can't look and analyse in comforatble detail, but I happen to be starting work on a script with an expiry element over the next few days. Think I'll start by looking at yours ![]() Posted by TedH (TedH), 28 June 2006 Have fun in Dublin Graham.One thing readers may notice is that I've used a META redirect to the URL for an external page. This should be okay as it is in a Perl script and search engine robots don't look there. Also it means you can use this on a Windows server as well. Apache on a Unix based server has other methods of redirect available and they can be used if needed. Or your expiry notice could simply be inside a/the Perl script. There's a lot of flexibility here. This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |