Programming in HTML and PHP Coding for Scientists and Engineers
This concise and accessible textbook will enable readers to quickly develop the working skills necessary to solve computational problems in a server-based environment, using HTML and PHP. The importance of learning by example (as opposed to simply learning by copying) is emphasized through extensive...
Saved in:
| Main Author | |
|---|---|
| Format | eBook Book |
| Language | English |
| Published |
Cham
Springer Nature
2017
Springer Springer International Publishing AG Springer International Publishing |
| Edition | 1 |
| Series | Undergraduate Topics in Computer Science |
| Subjects | |
| Online Access | Get full text |
| ISBN | 9783319569734 3319569732 9783319569727 3319569724 |
| ISSN | 1863-7310 2197-1781 |
| DOI | 10.1007/978-3-319-56973-4 |
Cover
Table of Contents:
- Exercises -- Algorithm Index -- Topic Index
- 5.3.3 Data Types, Variables, and Literals -- 5.3.4 Arithmetic Operators -- 5.3.5 The Assignment Operator -- 5.3.6 Relational and Logical Operators -- 5.4 Conditional Execution -- 5.5 Loop Structures -- 5.5.1 Count-controlled Loops -- 5.5.2 Conditional Loops -- 5.6 More Examples -- 5.6.1 The Quadratic Equation Revisited -- 5.6.2 Newton's Square Root Algorithm -- 6 Arrays -- 6.1 Array Definition and Properties -- 6.2 Array Sorting -- 6.3 Stacks, Queues, and Line Crashers -- 6.4 More Examples -- 6.4.1 The Quadratic Equation Revisited -- 6.4.2 Reading HTML checkbox Values -- 6.4.3 Building a Histogram Array -- 7 Functions -- 7.1 The Purpose of Functions -- 7.2 User-Defined Functions -- 7.3 Recursive Functions -- 7.4 Built-In Math Constants and Functions -- 7.5 More Examples -- 7.5.1 Loan Repayment Schedule -- 7.5.2 Legendre Polynomials -- 7.5.3 Kepler's Equation -- 8 Input/Output and Functions to Files, Strings, and Arrays -- 8.1 File Handling and Input/Output Functions -- 8.1.1 Opening, Closing, and Moving Files -- 8.1.2 Format Specifiers -- 8.1.3 Reading Files -- 8.1.4 Creating and Writing Files -- 8.1.5 Examining Variables and Displaying Output -- 8.2 String Handling Functions -- 8.3 Array-Related Functions -- 8.4 Some Miscellaneous Functions and Constructs -- 8.5 More Examples -- 8.5.1 Processing Wind Speed Data -- 8.5.2 Calculating the Mass of Solid Objects -- 8.5.3 Processing .bmp Image Files -- 8.5.4 Converting Strings Containing Dates and Times to Numerical Values -- 9 PHP Graphics -- 9.1 Introduction -- 9.2 Creating a Space for Graphics Applications -- 9.3 Pie Charts -- 9.4 Horizontal Bar Charts -- 9.5 Vertical Bar Charts -- 9.6 Line Graphs -- 9.7 Summary of Some GD Graphics Functions -- 9.7.1 Create and Save GD Image Space, Display Images -- 9.7.2 Draw Lines and Shapes -- 9.7.3 Display Text -- 10 PHP from a Command Line -- Appendices
- Intro -- Preface -- What is the Purpose of this Book? -- Learning by Example -- The Origin and Uses of this Book -- Acknowledgements -- Contents -- 1 Introducing HTML -- 1.1 Introducing the Tools -- 1.1.1 What Is an HTML Document? -- 1.1.2 How Do You Create HTML Documents? -- 1.1.3 Some Typographic Conventions Used in This Book -- 1.1.4 Finding More Information About HTML -- 1.2 Your First HTML Document -- 1.3 Accessing HTML Documents on the Web -- 1.4 Another Example -- 2 HTML Document Basics -- 2.1 Documents, Elements, Attributes, and Values -- 2.1.1 Documents and Their Essential Elements -- 2.1.2 Some Other Important Elements -- 2.2 HTML Syntax and Style -- 2.3 Creating and Organizing a Website -- 2.4 Selecting and Using Colors -- 2.5 Using Cascading Style Sheets -- 2.6 Another Example -- 3 HTML Tables, Forms, Lists, and Frames -- 3.1 The table Element -- 3.1.1 Table Formatting -- 3.1.2 Subdividing Tables into Sections -- 3.1.3 Merging Cells Across Rows and Columns -- 3.2 The form and input Elements -- 3.3 Creating Pull-Down Lists -- 3.4 Combining Tables and Forms -- 3.5 HTML List Elements -- 3.6 HTML Frames -- 3.7 More Examples -- 3.7.1 Selecting Cloud Types from a List of Possibilities -- 3.7.2 A "Split Window" Application -- 4 Creating a PHP Environment -- 4.1 A Simple HTML/PHP Application -- 4.2 Setting Up an HTML/PHP Environment -- 4.2.1 Install or Gain Access to a PHP-Enabled Server -- 4.2.2 Use an Editor to Create PHP Scripts -- 4.2.3 Pass Information from HTML to a PHP Application -- 4.2.4 Access Information Stored in Server-Based Files -- 4.3 More Examples -- 4.3.1 Solving the Quadratic Equation -- 4.3.2 Future Value with Compounded Interest -- 5 Introduction to PHP -- 5.1 What Should a Programming Language Do? -- 5.2 Some Essential Terminology -- 5.3 Structure of PHP Scripts -- 5.3.1 Statements and Statement Blocks -- 5.3.2 Comments