Current location: Hot Scripts Forums » Programming Languages » PHP » Simple Question


Simple Question

Reply
  #1 (permalink)  
Old 02-09-05, 07:35 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Simple Question

Hello

well this is my story :

I've a php called do_it.php and i want this file to be executed every 24 hours
but i dont know the command to write in the cron ( cpanel )

for example take site address " http://www.examplesite.com/do_it.php "

Thanks for any help
__________________
Email : write2shadi at gmail dot com
MSN : write2shadi at gmail dot com
Aim : shadiaim7
Skype: shadi_skype
Reply With Quote
  #2 (permalink)  
Old 02-09-05, 08:55 PM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
#File /etc/crontab or other cron files you have access on
1 2 * * * root lynx -d /path/to/yourlocalphpfile.ext > /dev/null
#or
#1 2 * * * root lynx -d http://www.examplesite.com/do_it.php > /dev/null
another solution
Code:
1 2 * * * root php -f /path/to/yourlocalphpfile.ext
#or
#1 2 * * * root /path/to/php -f /path/to/yourlocalphpfile.ext
more info, check your /etc/crontab and shell>man crontab

regards,
__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #3 (permalink)  
Old 02-10-05, 08:27 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
how i get the file path ?

example : http://www.sitename.com/file.php

how i get the "/path/file.php" of the file

thanks alot
__________________
Email : write2shadi at gmail dot com
MSN : write2shadi at gmail dot com
Aim : shadiaim7
Skype: shadi_skype
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple question Maniax JavaScript 4 08-31-04 01:08 PM
Simple PHP question about JPEG? snooky5 PHP 4 08-14-04 03:36 PM
Simple question kashi PHP 5 08-13-04 10:23 PM
simple array question jimcart JavaScript 1 03-19-04 05:38 PM
question about simple login system magsec4 PHP 5 02-23-04 03:35 AM


All times are GMT -5. The time now is 05:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.