1.7 Cross-platform PHPThis is NOT the latest copy of this book; click here for the latest version.
PHP works on many platforms, including Windows, Linux, BSD, Solaris, and Mac OS X to name just a few - this book attempts to cover PHP from an OS-agnostic point of view, which means I have tried hard to make sure you can understand and follow as much code as possible irrespective of what platform you use.
To make things easier to read, I have lumped Linux, BSD, Solaris, Mac OS, and other Unix-like OSs into "Unix" - this saves me typing and saves you reading, so everyone is a winner.
Throughout the book I refer to "shell prompts" and "command lines". This is the text entry system for your OS - for Windows NT/2000/XP users this can be found by clicking Start, then Run, and entering "cmd". Linux/BSD users running from the console are already there, but if you are using a GUI such as KDE or GNOME, you will need to launch xterm, Konsole, or whatever you use to enter text commands. Mac OS X users should have "Terminal" available for launching. I encourage use of the command line because it lets you use PHP in "interactive mode" - to type things, and see them happen immediately.
Finally, each platform has its own interpretation of line endings - what constitutes the end of a line of text. For Unix, a line end is just the new line character; for Windows, it is a new line plus a character feed; for Mac it is just a character feed. Crazy, yes, and annoying too. I have made this clear wherever new lines become an issue in this book.
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|