Nicht aus der Schweiz? Besuchen Sie lehmanns.de
PHP CLI - Robert Aley

PHP CLI

(Autor)

Buch | Softcover
75 Seiten
2016
Apress (Verlag)
978-1-4842-2237-9 (ISBN)
CHF 29,90 inkl. MwSt
This compact, concise book shows you how to create PHP Command Line Interface (CLI) scripts, including SAPI and more. Learn to quickly create useful and effective Command Line software and scripts using the world's most popular native web scripting language, PHP.

Enjoy the benefits of writing CLI scripts in PHP: Save money by redeploying existing skills, not learning new ones. Save time and increase productivity by using a high-level language. Make money by providing your clients a full-stack service.

What you'll learn
What the PHP CLI SAPI is
How to use it to run PHP scripts off-line
How to deal with user input and console output
How to work with helper libraries and software
What the differences are between programming for the web and for the CLI
and more

Who is this book for
This book is for experienced PHP programmers and web developers.

Rob Aley has been programming commercially and academically in a variety of programming languages, with over 10 years of PHP experience, since graduating in Computer Science from the University of Leeds in 1999. Having had a varied career working in industries from coffee to condoms, as well as doing freelance software development, Rob is now a "Database Programmer" at the University of Oxford working in healthcare related data analysis. He uses PHP almost exclusively now, out of choice. When he's not working or writing books, he spends time with his wife, three young children, and most importantly his cat.

1. Introduction1.1 "Use PHP? We're not building a website, you know!".1.2 Are you new to PHP?1.3 Reader prerequisites. Or, what this book isn't1.4 An important note for Windows and Mac users1.5 About the sample code1.6 External resources1.7 English. The Real English.2. Getting away from the Web - an overview of CLI programming in PHP2.1 PHP without a web server2.2 PHP versions - what's yours?2.3 A few good reasons NOT to do it in PHP2.4 Thinking about security2.5 CLI specific Code Frameworks3. Understanding and using the CLI SAPI3.1 What's different about the CLI SAPI?3.2 CLI SAPI installation3.3 PHP command line options3.4 Command line arguments for your script3.5 The many ways to call PHP scripts3.5.1 From a file3.5.2 From a string3.5.3 From STDIN :3.5.4 As a self executing script : Unix/Linux3.5.5 As a self executing script : Windows3.5.6 Windows php-win.exe3.6 Quitting your script3.7 PHP REPLs4. User facing software4.1 Command line interface basics4.2 Advanced command line input4.3 Using STDIN, STOUT & STDERR4.4 CLI helper libraries5. PHP CLI scripts and your system5.1 Starting external processes from PHP, or "shelling out"5.2 File Status and Realpath caches5.3 APC and other code caches6. Where now? or, Thanks & feedback6.1 Upgrade to "PHP Beyond The Web" for only $5!6.2 Giving feedback, and getting help and support6.3 Are you reading a "pirated" copy?A : Compiling and installing PHP, extensions and libraries

Erscheinungsdatum
Zusatzinfo 1 colour illustrations, biography
Verlagsort Berkley
Sprache englisch
Maße 155 x 235 mm
Gewicht 136 g
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Informatik Theorie / Studium Compilerbau
Informatik Web / Internet PHP
Schlagworte CLI • command line • Interface • PHP • Scripting • Web Development
ISBN-10 1-4842-2237-7 / 1484222377
ISBN-13 978-1-4842-2237-9 / 9781484222379
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Grundlagen und Anwendungen

von Hanspeter Mössenböck

Buch | Softcover (2024)
dpunkt (Verlag)
CHF 41,85
a beginner's guide to learning llvm compiler tools and core …

von Kai Nacke

Buch | Softcover (2024)
Packt Publishing Limited (Verlag)
CHF 69,80