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??
Automatic execution of php script
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Automatic execution of php script
If on Windows there is the Task Scheduler and on Linux you would use cron.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??
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: Automatic execution of php script
So....it is coded or managed by the organizations which give web-space for rent to others who want to upload their websites...AbraCadaver wrote:If on Windows there is the Task Scheduler and on Linux you would use cron.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??
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Automatic execution of php script
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.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: Automatic execution of php script
Thnx.that is helpful...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.
-
internet-solution
- Forum Contributor
- Posts: 220
- Joined: Thu May 27, 2010 6:27 am
- Location: UK
Re: Automatic execution of php script
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.
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
Thnx again.....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.