Hi Phill, Thanks for the input. Yes it will be a PHP script. I'll do some tests to see what $_SERVER has in it when run via cron/command line and HTTP request.
Sincerely, Mike -- Mike Brandonisio * Web Hosting Tech One Illustration * Internet Marketing tel (630) 759-9283 * e-Commerce [EMAIL PROTECTED] * http://www.jikometrix.net JIKOmetrix - Reliable web hosting On Jul 27, 2006, at 9:46 AM, Phill Sparks wrote: > The most secure way would be to keep it outside of the web-root. Is > the script PHP? It would be possible to check the differences between > a server ran script and a cli ran script. You'll probably find many > things different, for example the contents of $_SERVER. > > Phill > > On 27/07/06, Mike Brandonisio <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm creating a re-billing script to process subscription renewals >> for >> a site. I want to use crontab to check once a day for expiring >> accounts and re-bill the credit card. This script will only be run >> via crontab. Is there a technique that I can apply to prevent access >> to the script via HTTP and only execute it via crontab. One thought >> was to put the script outside of the public root. >> >> Sincerely, >> Mike >> -- >> Mike Brandonisio * Web Hosting >> Tech One Illustration * Internet Marketing >> tel (630) 759-9283 * e-Commerce >> [EMAIL PROTECTED] * http://www.jikometrix.net > > > Community email addresses: > Post message: php-list@yahoogroups.com > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > Yahoo! Groups Links > > > > > > > > > Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/