As you probably know, PHP is a recursive acronym for "PHP: Hypertext Preprocessor", so why should a product designed for the web ever stray from its original goal? Quite simple, because PHP is cool, and if I could use PHP to do everything , I'd certainly give it a try, if only for the challenge!
In this chapter we're going to be looking at other uses you can put PHP to in order to extend its usefulness. One key thing to remember is that you can use what you have learnt so far wherever else you use PHP, but you will find as you read on that there is a lot of specific information to absorb about individual uses.
Hopefully this chapter will inspire you to try to transfer your PHP skills to other areas - it is a big world out there!
The topics covered in this chapter are:
How to use PHP to write shell scripts
How the CLI SAPI differs from "normal" PHP
Interacting with the dialog program to create command-line user interfaces
Using GTK+ to create graphical user interfaces
Using Glade to automatically generate GTK+ GUIs
Making text-based games with PHP
Making graphical games with PHP and SDL
Creating your own miniature language with PHP
Next chapter: What else can be done with PHP? >>
Previous chapter: Next chapter
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.