Page 1 of 1

Automatic execution of php script

Posted: Sun Aug 08, 2010 3:28 pm
by K-Z
Hi...I just want to know that is automatic execution of any php script at a particular time managed by server level coding or it is to be coded by us?? If we are to manage it...then how ???

Example if I have a php file A.php which I want to get executed at 5:00 AM everyday....how should I manage it?? Is it done by the server controller or we are code for it??

Re: Automatic execution of php script

Posted: Sun Aug 08, 2010 3:52 pm
by AbraCadaver
K-Z wrote:Hi...I just want to know that is automatic execution of any php script at a particular time managed by server level coding or it is to be coded by us?? If we are to manage it...then how ???

Example if I have a php file A.php which I want to get executed at 5:00 AM everyday....how should I manage it?? Is it done by the server controller or we are code for it??
If on Windows there is the Task Scheduler and on Linux you would use cron.

Re: Automatic execution of php script

Posted: Sun Aug 08, 2010 4:02 pm
by K-Z
AbraCadaver wrote:
K-Z wrote:Hi...I just want to know that is automatic execution of any php script at a particular time managed by server level coding or it is to be coded by us?? If we are to manage it...then how ???

Example if I have a php file A.php which I want to get executed at 5:00 AM everyday....how should I manage it?? Is it done by the server controller or we are code for it??
If on Windows there is the Task Scheduler and on Linux you would use cron.
So....it is coded or managed by the organizations which give web-space for rent to others who want to upload their websites... :roll: :roll:

Re: Automatic execution of php script

Posted: Sun Aug 08, 2010 5:17 pm
by AbraCadaver
Yes. If you are buying web space from a hosting provider then they control this. Some may give you a way do this in a control panel for your account, or if you have ssh access you may be able to control this. However, some hosts do not provide any capability to do this.

Re: Automatic execution of php script

Posted: Sun Aug 08, 2010 10:18 pm
by K-Z
AbraCadaver wrote:Yes. If you are buying web space from a hosting provider then they control this. Some may give you a way do this in a control panel for your account, or if you have ssh access you may be able to control this. However, some hosts do not provide any capability to do this.
Thnx.that is helpful...

Re: Automatic execution of php script

Posted: Mon Aug 09, 2010 12:11 pm
by internet-solution
Or you can try one of the two poorman's cron options:
1) If you have regular visitor at your site then you can execute the code when someone visits your index.php. or
2) On your windows PC you can schedule a task, so that it calls the php file via your internet browser at specified time.

Re: Automatic execution of php script

Posted: Tue Aug 10, 2010 12:03 pm
by K-Z
internet-solution wrote:Or you can try one of the two poorman's cron options:
1) If you have regular visitor at your site then you can execute the code when someone visits your index.php. or
2) On your windows PC you can schedule a task, so that it calls the php file via your internet browser at specified time.
Thnx again..... :D :D