I found that I can use PHP in place of Bash, Awk, etc. jobs that have
nothing to do with web pages. Any other discussions along these lines?
!#/usr/bin/php -q
<?
$List = file ("file");
foreach ($List as .......
$query = "select.....
while....
.........
Using PHP in place of Bash
Moderator: General Moderators
Actualy there is alot of different things you can do with running PHP as a shell script. I would say there is enough functionality in PHP as a shell script as Perl has as a shell script.
There are also alot of cool things you can compile into PHP that are fun things to play with when ran from the command line. Process Forking, Shared memory, IPC and a ton of other things that are very usefull. I my self have written meny daemons for linux in PHP.
There are also alot of cool things you can compile into PHP that are fun things to play with when ran from the command line. Process Forking, Shared memory, IPC and a ton of other things that are very usefull. I my self have written meny daemons for linux in PHP.