[PHP] schedule a task

2001-11-19 Thread Gab

Hi,

I have a form (POST method), that creates a back-up of a MySQL database as
an SQL file when submited. I am looking for a way to automate this task (ie
on a daily basis at midnight).
Any idea on how to do it in PHP? (if it is possible)

Thanks

Gab



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey

cron either a php script itself [if you've got it installed as a cgi] or a
lynx request of the page
check the archives as well [marc.theaimsgroup.com] because this comes up
every week or so

- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 3:15 PM
Subject: [PHP] schedule a task


 Hi,

 I have a form (POST method), that creates a back-up of a MySQL database as
 an SQL file when submited. I am looking for a way to automate this task
(ie
 on a daily basis at midnight).
 Any idea on how to do it in PHP? (if it is possible)

 Thanks

 Gab



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] schedule a task

2001-11-19 Thread Tyler Longren

Set up a crontab that uses wget to hit that page everyday at midnight.

You should use the flag in wget that tells it to delete the page that it
downloads.  I use that method sometimes.

Tyler

- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 2:15 PM
Subject: [PHP] schedule a task


 Hi,

 I have a form (POST method), that creates a back-up of a MySQL database as
 an SQL file when submited. I am looking for a way to automate this task
(ie
 on a daily basis at midnight).
 Any idea on how to do it in PHP? (if it is possible)

 Thanks

 Gab



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] schedule a task

2001-11-19 Thread Gab

thanks for a quick response but I have a major problem with that:
no shell access = can't use cron

Any other idea?
Gab


Jack Dempsey [EMAIL PROTECTED] wrote in message
005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
 cron either a php script itself [if you've got it installed as a cgi] or a
 lynx request of the page
 check the archives as well [marc.theaimsgroup.com] because this comes up
 every week or so

 - Original Message -
 From: Gab [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 19, 2001 3:15 PM
 Subject: [PHP] schedule a task


  Hi,
 
  I have a form (POST method), that creates a back-up of a MySQL database
as
  an SQL file when submited. I am looking for a way to automate this task
 (ie
  on a daily basis at midnight).
  Any idea on how to do it in PHP? (if it is possible)
 
  Thanks
 
  Gab
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey

you need some way of automating the process, and without cron automatically
doing things for you, you're going to be pressed for a solution...i'm not
sure what you could do because you need something to do this
automatically...your host doesn't provide perl scripts to be cronned or
anything like that? if not, i'm not sure what to tell you...

jack
- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 3:32 PM
Subject: Re: [PHP] schedule a task


 thanks for a quick response but I have a major problem with that:
 no shell access = can't use cron

 Any other idea?
 Gab


 Jack Dempsey [EMAIL PROTECTED] wrote in message
 005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
  cron either a php script itself [if you've got it installed as a cgi] or
a
  lynx request of the page
  check the archives as well [marc.theaimsgroup.com] because this comes up
  every week or so
 
  - Original Message -
  From: Gab [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 19, 2001 3:15 PM
  Subject: [PHP] schedule a task
 
 
   Hi,
  
   I have a form (POST method), that creates a back-up of a MySQL
database
 as
   an SQL file when submited. I am looking for a way to automate this
task
  (ie
   on a daily basis at midnight).
   Any idea on how to do it in PHP? (if it is possible)
  
   Thanks
  
   Gab
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] schedule a task

2001-11-19 Thread Boget, Chris

 thanks for a quick response but I have a major problem with that:
 no shell access = can't use cron

Your Windows task manager?  Just set it up to go to that page
every night at your (not the server's) midnight...

Chris



Re: [PHP] schedule a task

2001-11-19 Thread Gab

I'll check with the tech support but nothng is mentioned on the website.
I can transform the method into GET on the form, and could call the script.
The only way I see so far is using thi URL as a default page in my Win
browser and automate sschedule the task in windows, but i don't like that.




Jack Dempsey [EMAIL PROTECTED] wrote in message
007f01c1713a$2a18e140$[EMAIL PROTECTED]">news:007f01c1713a$2a18e140$[EMAIL PROTECTED]...
 you need some way of automating the process, and without cron
automatically
 doing things for you, you're going to be pressed for a solution...i'm not
 sure what you could do because you need something to do this
 automatically...your host doesn't provide perl scripts to be cronned or
 anything like that? if not, i'm not sure what to tell you...

 jack
 - Original Message -
 From: Gab [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 19, 2001 3:32 PM
 Subject: Re: [PHP] schedule a task


  thanks for a quick response but I have a major problem with that:
  no shell access = can't use cron
 
  Any other idea?
  Gab
 
 
  Jack Dempsey [EMAIL PROTECTED] wrote in message
  005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
   cron either a php script itself [if you've got it installed as a cgi]
or
 a
   lynx request of the page
   check the archives as well [marc.theaimsgroup.com] because this comes
up
   every week or so
  
   - Original Message -
   From: Gab [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, November 19, 2001 3:15 PM
   Subject: [PHP] schedule a task
  
  
Hi,
   
I have a form (POST method), that creates a back-up of a MySQL
 database
  as
an SQL file when submited. I am looking for a way to automate this
 task
   (ie
on a daily basis at midnight).
Any idea on how to do it in PHP? (if it is possible)
   
Thanks
   
Gab
   
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
   
   
  
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: [PHP] schedule a task

2001-11-19 Thread Matthew Moreton

You can launch IE with an address as a paramater from task scheduler.

Example:

C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://somehost.com/somepath/somescript.php

Matt.


Gab [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I'll check with the tech support but nothng is mentioned on the website.
 I can transform the method into GET on the form, and could call the script.
 The only way I see so far is using thi URL as a default page in my Win
 browser and automate sschedule the task in windows, but i don't like that.
 
 
 
 
 Jack Dempsey [EMAIL PROTECTED] wrote in message
 007f01c1713a$2a18e140$[EMAIL PROTECTED]">news:007f01c1713a$2a18e140$[EMAIL PROTECTED]...
  you need some way of automating the process, and without cron
 automatically
  doing things for you, you're going to be pressed for a solution...i'm not
  sure what you could do because you need something to do this
  automatically...your host doesn't provide perl scripts to be cronned or
  anything like that? if not, i'm not sure what to tell you...
 
  jack
  - Original Message -
  From: Gab [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 19, 2001 3:32 PM
  Subject: Re: [PHP] schedule a task
 
 
   thanks for a quick response but I have a major problem with that:
   no shell access = can't use cron
  
   Any other idea?
   Gab
  
  
   Jack Dempsey [EMAIL PROTECTED] wrote in message
   005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
cron either a php script itself [if you've got it installed as a cgi]
 or
  a
lynx request of the page
check the archives as well [marc.theaimsgroup.com] because this comes
 up
every week or so
   
- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 3:15 PM
    Subject: [PHP] schedule a task
   
   
 Hi,

 I have a form (POST method), that creates a back-up of a MySQL
  database
   as
 an SQL file when submited. I am looking for a way to automate this
  task
(ie
 on a daily basis at midnight).
 Any idea on how to do it in PHP? (if it is possible)

 Thanks

 Gab



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
  [EMAIL PROTECTED]


   
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: Re: [PHP] schedule a task

2001-11-19 Thread Gab

thanks,
That's what I did, and it works fine, was just hopping to find another way
than using cron, but still as a server-side script.
Gab


Matthew Moreton [EMAIL PROTECTED] wrote in message
018c01c1713f$d98f9ab0$0100a8c0@summy">news:018c01c1713f$d98f9ab0$0100a8c0@summy...
You can launch IE with an address as a paramater from task scheduler.

Example:

C:\PROGRA~1\INTERN~1\IEXPLORE.EXE
http://somehost.com/somepath/somescript.php

Matt.


Gab [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I'll check with the tech support but nothng is mentioned on the website.
 I can transform the method into GET on the form, and could call the
script.
 The only way I see so far is using thi URL as a default page in my Win
 browser and automate sschedule the task in windows, but i don't like that.




 Jack Dempsey [EMAIL PROTECTED] wrote in message
 007f01c1713a$2a18e140$[EMAIL PROTECTED]">news:007f01c1713a$2a18e140$[EMAIL PROTECTED]...
  you need some way of automating the process, and without cron
 automatically
  doing things for you, you're going to be pressed for a solution...i'm
not
  sure what you could do because you need something to do this
  automatically...your host doesn't provide perl scripts to be cronned or
  anything like that? if not, i'm not sure what to tell you...
 
  jack
  - Original Message -
  From: Gab [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, November 19, 2001 3:32 PM
  Subject: Re: [PHP] schedule a task
 
 
   thanks for a quick response but I have a major problem with that:
   no shell access = can't use cron
  
   Any other idea?
   Gab
  
  
   Jack Dempsey [EMAIL PROTECTED] wrote in message
   005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
cron either a php script itself [if you've got it installed as a
cgi]
 or
  a
lynx request of the page
check the archives as well [marc.theaimsgroup.com] because this
comes
 up
every week or so
   
- Original Message -
From: Gab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 3:15 PM
    Subject: [PHP] schedule a task
   
   
 Hi,

 I have a form (POST method), that creates a back-up of a MySQL
  database
   as
 an SQL file when submited. I am looking for a way to automate this
  task
(ie
 on a daily basis at midnight).
 Any idea on how to do it in PHP? (if it is possible)

 Thanks

 Gab



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
  [EMAIL PROTECTED]


   
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]