CALENDAR ENTRIES
April 2009
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

February 2009
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28

About this Archive

This page is an archive of entries from February 2009 listed from newest to oldest.

January 2009 is the previous archive.

April 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.

February 2009 Archives

February 3, 2009

Integrating Bash with PHP

| | Comments (0) | TrackBacks (0)
Octavia Andreea Anghel is back on DevX.com with another PHP-related article. This week it's about Integrating Bash with PHP.

The article discusses how to install and configure three Bash distributions for Windows: the GNU BASH shell for Windows, the Win-Bash Windows port, and the Cygwin tool. It also demonstrates how to execute Bash scripts using PHP, how to send different types of arguments to a Bash script, how to use Bash functions from PHP, and how to save results to a text file.

Bash is an sh-compatible command language interpreter that executes commands read from standard input or from a file. Bash is a part of the GNU software collection, but is also available for Windows. Bash contains useful features from the Korn shell (k-sh) and C shell (c-sh) and is the default shell on most systems built on top of the Linux kernel as well as on Mac OS X. It can run on most Unix-like operating systems, and has been ported to Microsoft Windows using the POSIX emulations provided by Cygwin and MSYS.