Загрузка...
0+ Материал без явных возрастных ограничений

За короткое время Вы сможете научиться использовать PHP, MySQL и JavaScript вместе для создания динамических интерактивных веб-сайтов и приложений с использованием трех ведущих технологий веб-разработки.

Загрузка...

Опыт программирования не требуется. Используя простой пошаговый подход, каждый урок в этой книге основывается на предыдущих, что позволяет Вам изучить основы разработки веб-приложений с полным стеком - от HTML, CSS и JavaScript на переднем конце до PHP скриптинг и базы данных MySQL на сервере. Независимо от того, используете ли Вы Linux, Windows или MacOS, книга содержит полные инструкции по установке всего программного обеспечения, необходимого для настройки стабильной среды для обучения, тестирования и производства. Пошаговые инструкции тщательно проведут Вас по наиболее распространенным задачам разработки веб-приложений. Практические практические примеры показывают, как применять то, что Вы изучаете. Тесты и упражнения помогут Вам проверить свои знания и расширить свои навыки.

In just a short time, you can learn how to use PHP, MySQL, and JavaScript together to create dynamic, interactive websites and applications using three leading web development technologies. No previous programming experience is required. Using a straightforward, step-by-step approach, each lesson in this book builds on the previous ones, enabling you to learn the essentials of full-stack web application development – from HTML, CSS, and JavaScript on the front end, to PHP scripting and MySQL databases on the server. Regardless of whether you run Linux, Windows, or MacOS, the book includes complete instructions to install all the software you need to set up a stable environment for learning, testing, and production. Step-by-step instructions carefully walk you through the most common web application development tasks. Practical, hands-on examples show you how to apply what you learn. Quizzes and exercises help you test your knowledge and stretch your skills.

Table of Contents
Introduction 1
Part I: Web Application Basics
CHAPTER 1: Understanding How the Web Works 5
A Brief History of HTML and the World Wide Web 6
Creating Web Content 7
Understanding Web Content Delivery 7
Selecting a Web Hosting Provider 10
Testing with Multiple Web Browsers . 12
Creating a Sample File . 13
Using FTP to Transfer Files 14
Understanding Where to Place Files on the Web Server19
Summary 22
Q&A . 22
Workshop 23
CHAPTER 2: Structuring HTML and Using Cascading Style Sheets 25
Getting Started with a Simple Web Page 26
HTML Tags Every Web Page Must Have 29
Using Hyperlinks in Web Pages . 31
Organizing a Page with Paragraphs and Line Breaks 33
Organizing Your Content with Headings 36
Understanding Semantic Elements. 39
How CSS Works 51
A Basic Style Sheet . 54
A CSS Style Primer59
Using Style Classes . 64
Using Style IDs. 66
Internal Style Sheets and Inline Styles 66
Summary 69
Q&A . 71
Workshop 72
CHAPTER 3: Understanding the CSS Box Model and Positioning 75
The CSS Box Model 76
The Whole Scoop on Positioning . 79
Controlling the Way Things Stack Up 84
Managing the Flow of Text . 86
Understanding Fixed Layouts 87
Understanding Fluid Layouts 89
Creating a Fixed/Fluid Hybrid Layout 92
Considering a Responsive Web Design . 103
Summary 104
Q&A . 105
Workshop 105
CHAPTER 4: Introducing JavaScript 107
Learning Web Scripting Basics. 108
How JavaScript Fits into a Web Page 109
Exploring JavaScript’s Capabilities. 111
Basic JavaScript Language Concepts 112
JavaScript Syntax Rules 118
Using Comments 119
Best Practices for JavaScript. 120
Understanding JSON 121
Using the JavaScript Console to Debug JavaScript . 122
Summary 124
Q&A . 124
Workshop125
CHAPTER 5: Introducing PHP 127
How PHP Works with a Web Server 127
The Basics of PHP Scripts 128
Code Blocks and Browser Output. 134
Summary 136
Q&A . 137
Workshop 137
Part II: Getting Started with Dynamic Websites
CHAPTER 6: Understanding Dynamic Websites and HTML5 Applications 139
Refresher on the Different Types of Scripting. 140
Displaying Random Content on the Client Side 140
Understanding the Document Object Model . 144
Using window Objects. 145
Working with the document Object . 146
Accessing Browser History . 149
Working with the location Object . 151
More About the DOM Structure . 152
Working with DOM Nodes 155
Creating Positionable Elements (Layers) . 157
Hiding and Showing Objects . 162
Modifying Text Within a Page. 164
Adding Text to a Page 166
Changing Images Based on User Interaction 168
Thinking Ahead to Developing HTML5 Applications. 170
Summary 171
Q&A . 172
Workshop172
CHAPTER 7: JavaScript Fundamentals: Variables, Strings, and Arrays 175
Using Variables 175
Understanding Expressions and Operators . 179
Data Types in JavaScript. 180
Converting Between Data Types 181
Using String Objects. 182
Working with Substrings . 185
Using Numeric Arrays 188
Using String Arrays 189
Sorting a Numeric Array. 191
Summary 194
Q&A . 195
Workshop195
CHAPTER 8: JavaScript Fundamentals: Functions, Objects, and Flow Control 197
Using Functions . 198
Introducing Objects 203
Using Objects to Simplify Scripting 205
Extending Built-in Objects 210
Using the Math Object 212
Working with Math Methods . 213
Working with Dates 216
The if Statement. 219
Using Shorthand Conditional Expressions 222
Testing Multiple Conditions with if and else . 223
Using Multiple Conditions with switch . 225
Using for Loops 227
Using while Loops. 229
Using do…while Loops . 230
Working with Loops . 231
Looping Through Object Properties 232
Summary 236
Q&A . 236
Workshop237
CHAPTER 9: Understanding JavaScript Event Handling 239
Understanding Event Handlers 239
Using Mouse Events 244
Using Keyboard Events . 248
Using the load and unload Events . 250
Using click to Change a <div>'s Appearance. 251
Summary 258
Q&A . 258
Workshop 258
CHAPTER 10: The Basics of Using jQuery 261
Using Third-Party JavaScript Libraries 261
jQuery Arrives on the Scene 263
Preparing to Use jQuery 264
Becoming Familiar with the $().ready Handler 265
Selecting DOM and CSS Content . 267
Manipulating HTML Content 267
Putting the Pieces Together to Create a jQuery Animation . 272
Handling Events with jQuery 275
Summary 276
Q&A . 277
Workshop 277
Part III: Taking Your Web Applications to the Next Level
CHAPTER 11: AJAX: Remote Scripting 279
Introducing AJAX. 279
Using XMLHttpRequest . 282
Creating a Simple AJAX Library 283
Creating an AJAX Quiz Using the Library 285
Debugging AJAX-Based Applications . 290
Using jQuery’s Built-in Functions for AJAX . 295
Summary 296
Q&A . 296
Workshop 296
CHAPTER 12: PHP Fundamentals: Variables, Strings, and Arrays 299
Variables . 299
Data Types 302
Using Expressions and Operators. 307
Constants 315
Understanding Arrays 317
Creating Arrays . 318
Some Array-Related Constructs and Functions 322
Summary 324
Q&A . 324
Workshop 325
CHAPTER 13: PHP Fundamentals: Functions, Objects, and Flow Control 327
Calling Functions. 328
Defining a Function . 330
Returning Values from User-Defined Functions . 332
Understanding Variable Scope. 333
Saving State Between Function Calls with the static Statement . 336
More About Arguments 338
Testing for the Existence of a Function . 341
Creating an Object. 343
Object Inheritance . 348
Switching Flow. 350
Implementing Loops 356
Summary 364
Q&A . 365
Workshop 365
CHAPTER 14: Working with Cookies and User Sessions 367
Introducing Cookies . 367
Setting a Cookie. 369
Deleting a Cookie 373
Overview of Server-Side Sessions 373
Working with Session Variables . 374
Destroying Sessions and Unsetting Session Variables . 380
Using Sessions in an Environment with Registered Users 380
Summary 382
Q&A . 382
Workshop383
CHAPTER 15: Working with Web-Based Forms 385
How HTML Forms Work385
Creating a Form. 386
Accepting Text Input 390
Naming Each Piece of Form Data 391
Labeling Each Piece of Form Data . 392
Grouping Form Elements 393
Exploring Form Input Controls 394
Using HTML5 Form Validation 402
Submitting Form Data 404
Accessing Form Elements with JavaScript . 406
Accessing Form Elements with PHP 408
Using Hidden Fields to Save State in Dynamic Forms 414
Sending Mail on Form Submission . 416
Summary 420
Q&A . 422
Workshop 423
Part IV: Integrating a Database into Your Applications
CHAPTER 16: Understanding the Database Design Process 425
The Importance of Good Database Design . 425
Types of Table Relationships 426
Understanding Normalization . 431
Following the Design Process . 434
Summary 435
Q&A . 436
Workshop 436
CHAPTER 17: Learning Basic SQL Commands 437
Learning the MySQL Data Types . 437
Learning the Table-Creation Syntax 441
Using the INSERT Statement . 442
Using the SELECT Statement . 444
Using WHERE in Your Queries . 447
Selecting from Multiple Tables . 449
Using the UPDATE Statement to Modify Records 455
Using the REPLACE Statement . 458
Using the DELETE Statement . 459
Frequently Used String Functions in MySQL 461
Using Date and Time Functions in MySQL . 470
Summary 482
Q&A . 484
Workshop 485
CHAPTER 18: Interacting with MySQL Using PHP 487
MySQL or MySQLi? 487
Connecting to MySQL with PHP 487
Working with MySQL Data . 491
Summary 499
Q&A . 499
Workshop 499
Part V: Getting Started with Application Development
CHAPTER 19: Creating a Simple Discussion Forum 501
Designing the Database Tables 501
Creating an Include File for Common Functions . 502
Creating the Input Forms and Scripts . 503
Displaying the Topic List . 507
Displaying the Posts in a Topic 510
Adding Posts to a Topic 514
Modifying the Forum Display with JavaScript . 518
Summary 520
Q&A . 520
Workshop 520
CHAPTER 20: Creating an Online Storefront 523
Planning and Creating the Database Tables . 523
Displaying Categories of Items 527
Displaying Items 531
Using JavaScript with an Online Storefront 534
Summary 538
Q&A . 538
Workshop 539
CHAPTER 21: Creating a Simple Calendar 541
Building a Simple Display Calendar 541
Creating the Calendar in JavaScript 558
Summary 564
Q&A . 564
Workshop 564
CHAPTER 22: Managing Web Applications 567
Understanding Some Best Practices in Web Application Development . 567
Writing Maintainable Code 570
Implementing Version Control in Your Work 575
Understanding the Value and Use of Code Frameworks . 576
Summary 581
Q&A . 581
Workshop 582
Appendixes
APPENDIX A: Installation QuickStart Guide with XAMPP 583
Using Third-Party Installation Packages . 583
Installing XAMPP on Linux/UNIX . 584
Installing XAMPP on Windows 586
Installing XAMPP on Mac OS X . 589
Securing XAMPP 594
Troubleshooting . 595
APPENDIX B: Installing and Configuring MySQL 597
Current and Future Versions of MySQL . 597
How to Get MySQL . 598
Installing MySQL on Linux/UNIX 598
Installing MySQL on Mac OS X . 601
Installing MySQL on Windows 603
Troubleshooting Your Installation 609
Basic Security Guidelines 610
Introducing the MySQL Privilege System 611
APPENDIX C: Installing and Configuring Apache 617
Current Versions of Apache . 617
Choosing the Appropriate Installation Method . 618
Installing Apache on Linux/UNIX . 619
Installing Apache on Mac OS X 621
Installing Apache on Windows 622
Apache Configuration File Structure 624
Apache Log Files 629
Apache-Related Commands 630
Starting Apache for the First Time . 631
Troubleshooting . 633
APPENDIX D: Installing and Configuring PHP 635
Current and Future Versions of PHP . 635
Building PHP on Linux/UNIX with Apache 636
Installing PHP on Mac OS X 639
Installing PHP on Windows . 640
php.ini Basics 642
Testing Your Installation . 642
Getting Installation Help 643
Index 645

Категория:
Обучение

Информация:

Создан:
Просмотров:
229
Страниц:
693
Автор:
Meloni J.
Язык:
En
Тип книги:
pdf

Изображения:

Показать изображения
Высокая скорость
Скачивайте очень быстро...
Прямые ссылки
Все файлы хранятся у нас. Качайте быстрее...
Безопасно
Вирусов и других угроз НЕТ! Проверено ESET

Файл:

Добавить комментарий
Комментариев пока нет

Случайный материал: Еще

Последние 9 материалов:

Загрузка...