For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > RE: [PHP-DB] Autorunning a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] Autorunning a file
Lasitha Alawatta

2007-10-10, 7:58 am

=0D=0AIf u don't have permission to ur command line;=0D=0ATry to solve ur t=
hing by using=20=0D=0A=0D=0A01) Meta refresh=0D=0A=09OR=0D=0A02) JavaScript=
- setTimeout() function.=0D=0A=0D=0ARegards,=0D=0ALasitha=0D=0A =20=0D=0A=0D=
=0A=0D=0A-----Original Message-----=0D=0AFrom: Alexander [mailto:kurokawa@t=
ds.net]=20=0D=0ASent: Wednesday, October 10, 2007 7:34 AM=0D=0ATo: php-db@l=
ists.php.net=0D=0ASubject: [PHP-DB] Autorunning a file=0D=0A=0D=0AIs there =
anyway to auto execute a PHP file=3F I'm working on a script that=0D=0A=0D=0A=
tracks activity and IPs of visitors, and then at a certain time daily=0D=0A=
emails=20=0D=0Ame the results.=0D=0A=0D=0AAny idea of a way to do this=3F =0D=
=0A=0D=0A--=20=0D=0APHP Database Mailing List (http://www.php.net/)=0D=0ATo=
unsubscribe, visit: http://www.php.net/unsub.php=0D=0A=0D=0A=0D=0ADOTW DIS=
CLAIMER:=0D=0A=0D=0AThis e-mail and any attachments are strictly confidenti=
al and intended for the addressee only. If you are not the named addressee =
you must not disclose, copy or take=0D=0Aany action in reliance of this tra=
nsmission and you should notify us as soon as possible. If you have receive=
d it in error, please contact the message sender immediately.=0D=0AThis e-m=
ail and any attachments are believed to be free from viruses but it is your=
responsibility to carry out all necessary virus checks and DOTW accepts no=
liability=0D=0Ain connection therewith.=20=0D=0A=0D=0AThis e-mail and all =
other electronic (including voice) communications from the sender's company=
are for informational purposes only. No such communication is intended=0D=
=0Aby the sender to constitute either an electronic record or an electronic=
signature or to constitute any agreement by the sender to conduct a transa=
ction by electronic means.=0D=0A
Alexander

2007-10-10, 10:00 pm

Thanks for the replies. I'm going to have to check what the server is, I'm
not the one with the hosting account, so no direct access to the server
(yet, will probably get it when I need to).

The only problem I see with thise solution here is that the page that the
script will be in won't be directly accessed, which is a requirement for
JavaScript. I plan to keep this as a hidden file, so the visitors aren't
aware of its existence. I thought of creating a script on the index that
checks the time and if it's a certain time runs the script for this, but
then I realized that there may not be a visitor calling the index at the
time I need it.

I'll look into the cron job.

Thanks again,
Alexander


----- Original Message -----
From: "Lasitha Alawatta" <Lasitha.A@dotw.com>
To: "Alexander" <kurokawa@tds.net>; <php-db@lists.php.net>
Sent: Wednesday, October 10, 2007 7:10 AM
Subject: RE: [PHP-DB] Autorunning a file



If u don't have permission to ur command line;
Try to solve ur thing by using

01) Meta refresh
OR
02) JavaScript - setTimeout() function.

Regards,
Lasitha



-----Original Message-----
From: Alexander [mailto:kurokawa@tds.net]
Sent: Wednesday, October 10, 2007 7:34 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Autorunning a file

Is there anyway to auto execute a PHP file? I'm working on a script that

tracks activity and IPs of visitors, and then at a certain time daily
emails
me the results.

Any idea of a way to do this?

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


DOTW DISCLAIMER:

This e-mail and any attachments are strictly confidential and intended for
the addressee only. If you are not the named addressee you must not
disclose, copy or take
any action in reliance of this transmission and you should notify us as soon
as possible. If you have received it in error, please contact the message
sender immediately.
This e-mail and any attachments are believed to be free from viruses but it
is your responsibility to carry out all necessary virus checks and DOTW
accepts no liability
in connection therewith.

This e-mail and all other electronic (including voice) communications from
the sender's company are for informational purposes only. No such
communication is intended
by the sender to constitute either an electronic record or an electronic
signature or to constitute any agreement by the sender to conduct a
transaction by electronic means.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com