background processes

About: PHP Tutorial - Command Line PHP Scripting

source:
Command Line PHP is an extension to PHP that most web site developers are probably not really aware of but it is a very powerful tool in helping you get the most from your server using a language that you are familiar with. Command line PHP can be used to develop what are known as "shell applications" that is to say they can be run on a server by typing a command in and hitting enter much as you would when typing in a ping command.
...
Use your imagination, combine the knowledge you've gained here with CRON scheduling to get all your monthly server housework sorted out using a programming language native to the web. This instantly turns you as a web developer into a shell scripter and will upset a lot of people who've been telling the world for years that you have to use Perl, C or Shell scripting to do all these things.
To run php at unix command line we need to give it path to the php ini file as follows:
 php -c /etc/sysconfig/vz-scripts/1.conf -f fullpathtofile

Tags

  1. php
  2. scripting
  3. cron
  4. background processes
  5. command line php
  6. scheduler

Comments


Seth says
released today is a php class to spaun background processess url http://www.phpclasses.org/browse/package/2837.html

See Also

  1. Thought Project to switch php version at Speak To Me Catalog.Com with 94 viewings related by tag "php".
  2. Thought My Bookmarks with 1 viewings related by tag "php".
  3. Thought Unix Power Tools with 1 viewings related by tag "cron".
  4. Thought many useful php routines with 1 viewings related by tag "php".
  5. Thought sources of php code with 0 viewings related by tag "php".
  6. Thought Computing and people. with 0 viewings related by tag "scripting".
  7. Thought Lpkb with 0 viewings related by tag "scripting".
  8. Thought How to mix node and PHP with 0 viewings related by tag "php".
  9. Thought What fbi needs now ... with 0 viewings related by tag "php".
  10. Thought PHP 4 support with 0 viewings related by tag "php".
  11. Thought about: weaverluke: Looking for a web developer (PHP, MySQL) with 0 viewings related by tag "php".
  12. Thought tutorial for php classes with 0 viewings related by tag "php".
  13. Thought about: iCasualties: OIF Iraqi Deaths with 0 viewings related by tag "php".
  14. Thought QA understands the code ! with 0 viewings related by tag "php".