|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Cron Reasearch
Hi,
I'm doing a little research for a freebie script I'm building and wondered if any of you could help. Basically the script is to do with Cron and Running a PHP file, all I am looking for is possible methods of running a PHP script from the crontab. At the moment I have the most common 3: wgets fetch lynx Are there any others I should be bothered about? Cheers
__________________
--------------------- -- SilkySmooth -- --------------------- Proxy | Little Directory |
|
#2
|
||||
|
||||
|
I am pretty sure that PHP includes functions simular to that used in perl, located in PHP's PEAR... only way to know is to have a look on the PHP.net / Zend websites.
Some info that might help... Shell Scripting with PHP: http://www.phpbuilder.com/columns/darrell20000319.php3 PEAR: http://pear.php.net/package-search....D&submit=Search Some scripts that have already been done: http://www.hotscripts.com/PHP/Scrip...Search_Engines/ If you fail you there is always PERL: http://www.devshed.com/Server_Side/...ning/page1.html But I don't think ya will...
__________________
deepspring - "Netscape 4 users are like lemmings... You can't help but laugh when one falls off a cliff" Last edited by deepspring : May 15th, 2002 at 05:50 AM. |
|
#3
|
|||
|
|||
|
Compile php as a binary and cron like this:
* * * * * * myPhpScript.php First line would be: #! /path/to/php.exe -q
__________________
FSBO (For Sale By Owner) Realty |
|
#4
|
||||
|
||||
|
Thanks for the response's, much appreciated.
Ron, do you know if it's possible to check the install type of PHP be it binary or module? Cheers |
|
#5
|
|||
|
|||
|
If php.exe is on the system (usually in /usr/local/bin/ ) then a binary has been installed. There's not an easy way to check, even with phpinfo(), since a module and an executable could both be installed. You could use phpinfo() but that would just tell you if the web server is using a module or exe, not whether or not the exe existed.
|
|
#6
|
||||
|
||||
|
Well I suppose I can run a check to see if php.exe is present (If my script has access) and if so do some stuff otherwise I won`t include this option.
Thanks for the help. ![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > Cron Reasearch |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|