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 (1 - 2)
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
DS2K3
post Jul 9 2006, 07:34 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



If you are on a shared server, then you may well not have access to CRON, in which case you won't be able to schedule tasks on the server itself. You could schedule a task on your local computer to fetch the PHP page though.

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

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: 17th December 2017 - 10:33 AM