Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-16 Thread Jonathan Villa
Well, I performed a simple test... I created a file in a dir outside of my webroot with a simple echo phpinfo(); I then simply /usr/local/bin/php phptest.php it worked... great... next attempt is the CRON, which I am assuming will work... On Tue, 2003-09-16 at 06:58, Martin Marques wrote: > E

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-16 Thread Martin Marques
El Lun 15 Sep 2003 17:47, Jonathan Villa escribió: > I believe this would need php to installed as a cgi, which I prefer not > to do... If you don't want to because of security resons, please install it and don't leave it in the hands of the web server. If you don't want to go through the problem

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread CPT John W. Holmes
- Original Message - From: "Pat Lashley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 5:12 PM Subject: Re: [PHP-DB] Need to Run a PHP script using CRON or ? > --On Monday, September 15, 2003 15:27:45

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Matt Babineau
Goto your shell and type "php -i" w/o the quotes. You should see the phpinfo() output. You can pass the path to your script as a command line variable, and it will process it. Here, read about it, I think this is the right answer for you: http://us3.php.net/features.commandline Matt On Mon, 2003-

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Pat Lashley
--On Monday, September 15, 2003 15:27:45 -0500 Jonathan Villa <[EMAIL PROTECTED]> wrote: Interesting... how does this fair concerning security? So I'll have to have this file located in my document root, is this a good thing? My current directory structure consists of several files located outs

RE: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Ryan Marks
] Need to Run a PHP script using CRON or ? From: "Ryan Marks" <[EMAIL PROTECTED]> > Not necessarily. You can wget /path/to/file.php or my personal preference > is not to use wget, but php directly > /path/to/php/executable /path/to/file.php Are you sure about that? I thoug

RE: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Jonathan Villa
/file.php > > Just a thought, > Ryan > > -Original Message- > From: Jonathan Villa [mailto:[EMAIL PROTECTED] > Sent: Monday, September 15, 2003 3:28 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Need to Run a PHP script using CRON or ? > > > > Inter

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread CPT John W. Holmes
From: "Ryan Marks" <[EMAIL PROTECTED]> > Not necessarily. You can wget /path/to/file.php or my personal preference > is not to use wget, but php directly > /path/to/php/executable /path/to/file.php Are you sure about that? I thought wget had to go through HTTP? This didn't work for me, am I do

RE: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Ryan Marks
: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Need to Run a PHP script using CRON or ? Interesting... how does this fair concerning security? So I'll have to have this file located in my document root, is this a good thing? My current directory structure consists of several files located outsid

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread CPT John W. Holmes
From: "Jonathan Villa" <[EMAIL PROTECTED]> > > wget -q -O - www.domain.com/cron.php > /dev/null > > Interesting... how does this fair concerning security? So I'll have to > have this file located in my document root, is this a good thing? My > current directory structure consists of several fil

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Jonathan Villa
Interesting... how does this fair concerning security? So I'll have to have this file located in my document root, is this a good thing? My current directory structure consists of several files located outside the doc root. I guess I could always include it onto a page On Mon, 2003-09-15 at 1

AW: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Lars Jedinski
;-) [my English isn't fine - i know :-( ] Lars Jedinski > -Ursprüngliche Nachricht- > Von: Jonathan Villa [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 15. September 2003 21:41 > An: [EMAIL PROTECTED] > Betreff: [PHP-DB] Need to Run a PHP script using CRON or

Re: [PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread CPT John W. Holmes
From: "Jonathan Villa" <[EMAIL PROTECTED]> > I have an application which creates temporary tables. My plan is to > remove them after a 24 hour period and only those which are have a > created time greater than 24 hours. That part I can do, my question is > how will I be able to run this script

[PHP-DB] Need to Run a PHP script using CRON or ?

2003-09-15 Thread Jonathan Villa
I have an application which creates temporary tables. My plan is to remove them after a 24 hour period and only those which are have a created time greater than 24 hours. That part I can do, my question is how will I be able to run this script which is a 2 part script. First thing I do is pull t