PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 1999, 03:22 AM
jtcourrier
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Does someone know how to schedule a PHP script (like CFschedule with Cold Fusion for example) ?

Is there a way with the CRON Daemon ?

Reply With Quote
  #2  
Old August 2nd, 1999, 10:04 AM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yes, there is a way you can cron PHP scripts, but you must have a program that will get web pages. fetch (for FreeBSD) is a good example, but I'm sure there are many others.

Then in the cron tab you would use a command like this:

/usr/bin/fetch http://www.domain.com/dir/file.php3

With the appropriate time specified of course. Basically any program that will grab a page from the web server can be used to automate a PHP script.

[This message has been edited by moderator (edited 08-02-99).]

Reply With Quote
  #3  
Old August 2nd, 1999, 06:21 PM
jpenix
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Another option is to compile PHP in CGI form, and use the PHP executable as a script interpreter.

Start your script:

#!/usr/local/php/php {or wherever PHP is}

And mark it executable. Then you can call the script directly from cron.

Reply With Quote
  #4  
Old August 3rd, 1999, 03:04 AM
jtcourrier
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Is Fetch a text based browser like Lynx under linux ?

Reply With Quote
  #5  
Old August 3rd, 1999, 01:00 PM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
No, fetch is a command that comes with FreeBSD systems. fetch is not included with Linux (to the best of my knowledge), but you should be able to use any command that will grab a web page to schedule your scripts.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP Script Scheduling ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT