Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> About Corn, I have to run a .php page automatically.
Aminul
post Jul 8 2006, 11:23 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 8-July 06
Member No.: 6,724



Hi,
i m a new member of this forum. i would like to know about Automatic running a php page in server. Simply i need to run a PHP script in server everyday at 12:00 PM. how shall i do this. Pls help me. For more i don't found /etc folder in my ftp. i m not sure my server have corn support or not. pls let me know what shall i do now.

thanks.
aminul
junior programmer(php,mysql)
bGlobal sourcing.com
Bangladesh.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
markjr
post Jul 9 2006, 12:44 AM
Post #2


./configure
***

Group: Admin
Posts: 62
Joined: 9-February 06
Member No.: 6,054



QUOTE (Aminul @ Jul 9 2006, 12:23 AM) *
Hi,
i m a new member of this forum. i would like to know about Automatic running a php page in server. Simply i need to run a PHP script in server everyday at 12:00 PM. how shall i do this. Pls help me. For more i don't found /etc folder in my ftp. i m not sure my server have corn support or not. pls let me know what shall i do now.

thanks.
aminul
junior programmer(php,mysql)
bGlobal sourcing.com
Bangladesh.


You mean cron?

Pretty well every system will have it, you need to edit your crontab files, something like

# crontab -e

and then in that file put an entry like

0 12 * * * /usr/bin/lynx -dump http://localhost/yourscript.php

it probably the easiest thing to do, without getting into a discussion over whether its the most efficient way to approach it (over running the script as a php command line script)

See your man pages for "crontab" and "crond"

-mark
Go to the top of the page
 
+Quote Post

Posts in this topic
- Aminul   About Corn   Jul 8 2006, 11:23 PM
- - markjr   QUOTE (Aminul @ Jul 9 2006, 12:23 AM) Hi,...   Jul 9 2006, 12:44 AM
- - DS2K3   If you are on a shared server, then you may well n...   Jul 9 2006, 07:34 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 11:45 AM