تبلیغات

آموزش اصول ساخت وب سایت ابتدایی با PHP 

دسته بندی ها: آموزش های TreeHouse ، آموزش طراحی وب ، آموزش پی اچ پی (PHP)

این پروژه به شما نشان می دهد که چگونه یک وب سایت ساده با استفاده از زبان برنامه نویسی پی اچ پی ایجاد کنید. وب سایت، یک کتابخانه رسانه ای است که به شما اجازه می دهد که کتاب ها، فیلم ها و موسیقی خود را سازماندهی و نمایش دهید. در این دوره با اصول ساخت وب سایت PHP آشنا می شوید.

سرفصل:

  • سازماندهی و نمایش فهرست
  • ایمیل و فرم داده
  • ساخت یک کتابخانه رسانه ای در پی اچ پی
  • راه اندازی پروژه
  • استفاده از کد پی اچ پی در سایت ما
  • یک مثال ساده PHP
  • هدر
  • فوتر و اضافه کردن صفحات اضافی
  • PHP و فایل ها
  • استفاده از متغیرها برای تگ عنوان
  • کار با متغیرهای  GET_
  • متغیرها و شرایط
  • اضافه کردن Active States به ناوبری
  • ایجاد آرایه کاتالوگ
  • کار با توابع
  • مرتب سازی آیتم های آرایه
  • فرم های HTML
  • اعتبارسنجی داده فرم
  • SMTP با گوگل
  • فرم ها و ورودی کاربر
  • تنظیم یک پیام خطای متغیر
  • مدیریت پیام خطا
  • ادغام خطاهای اعتبار سنجی
  • و غیره
آیا این نوشته را دوست داشتید؟
Build a Basic PHP Website Course Publisher:TeamTreeHouse Author:Alena Holligan Level:Beginner

This project will show you how to build a simple website using the PHP programming language. The web site, a media library, will let you organize and display your Books, Movies and Music. You could easily use this project to create a website that lets you organize and display any type of item: Branch Locations, Products, Services, Events, even Courses like we have here on Treehouse.
About this Course
This project will show you how to build a simple website using the PHP programming language. The web site, a media library, will let you organize and display your Books, Movies and Music. You could easily use this project to create a website that lets you organize and display any type of item: Branch Locations, Products, Services, Events, even Courses like we have here on Treehouse.
What you'll learn
Organizing and Displaying Inventory
Reusing Code
Email and Form DataBuilding a Media Library in PHP
Our media website will have a number of pages, but the pages share a few common elements like the top navigation menu and the footer. We’ll build these shared elements into a set of template files, using basic programming concepts like variables and conditionals to make it all work.
11 steps
Setting Up the Project
4:22
Using PHP Code on Our Site
3:09
A Simple PHP Example
1 objective
Including the Header
5:32
Including the Footer and Adding Additional Pages
3:19
Basic PHP and Including Files
5 questions
Using Variables for the Title Tag
3:24
Working with _GET Variables
5:10
Variables and Conditionals
6 questions
Adding Active States to the Navigation
4:29
Variables and Conditionals
3 objectives
Extra Credit
Add another page to the menu for something like "Company Information." You'll need to complete the following steps:
Create a new PHP file for the page, making sure to set the $section variable.
Modify header.php to display the new menu item, making sure that it is underlined when someone is on the new page.
Create an icon for the menu item.
Modify the CSS file to display that new icon, as well as to make room for the extra item in the menu.
Listing and Sorting Inventory Items
Our media library contains quite a bit of information, too much to fit in simple variables. A PHP array will be perfect for the task, and we’ll explore all the ins and outs of working with arrays to store sets of related data. We’ll also use the data from the array to populate our category pages that shows a list of all the media in our catalog.
We want to have separate pages for the different categories of media items, but the layout should be the same on each of these pages. We’ll work with PHP functions, blocks of code that can be called from other blocks of code, to make sure that media items are displayed the same across all list pages. PHP comes with a large number of native functions, but it also provides a way to create our own.
19 steps
Creating the Catalog Array
4:43
Adding Elements and Specifying a Key
3:20
Introducing Arrays
4 objectives
Associative Arrays
5:30
Associative Arrays
7 objectives
Displaying All Items
3:30
Multidimensional Arrays
8 questions
Creating the Display Function
4:56
Working with Functions
8 questions
Random Fun with Arrays
3:36
Introducing Functions
1 objective
Displaying Categories
5:50
Sorting Array Items
6:05
Item Details and Redirection
5:35
Array Keys
2 objectives
Displaying Item Details
5:55
More Excitement With Arrays
6 questions
Breadcrumbs
3:44
Review Basics
3 objectives
Adding a Basic Form
PHP does more than just make a set of HTML files easier to maintain. It also adds advanced functionality to a site that HTML and CSS alone cannot achieve, like sending an email. We’ll create a suggestion form for our website, allowing users to enter a media suggestion into an HTML form and then using PHP to process the form submission.
20 steps
Setting Up the Initial Form
4:38
Creating Input Fields
2:52
Input Fields
5 questions
Working with Post Variables
4:10
HTML Forms
4 objectives
Forms and User Input
5 questions
Working with Concatenation and Whitespace
4:26
Concatenation
4 objectives
Redirecting After a Form Submission
5:19
Redirection
5 questions
Checking the Request Method
6:28
Validating Form Data
9:27
Form Validation
5 questions
Using A Third-Party Library
4:47
Using Object and Validating Email
4:39
Form Submissions
5 questions
Utilizing Object Properties and Methods
6:13
Objects
4 objectives
SMTP with Google
5:49
Objects and Email Validation
5 questions
Extra Credit
Change the formatting of the email sent by the contact form:
Add a heading
Add the image
Add paragraph tags around the message
Make the names of the fields bold
Enhancing a Form
Our suggestion form currently checks that the information submitted by visitors to our site is valid, but we need to improve how validation errors get displayed. We’ll enhance the flow of our code that handles form submissions, displaying error messages within the context of the form and carefully avoiding a common security vulnerability by escaping our output.
14 steps
Requesting Specific Information
4:26
Grouping Options for More Detail
4:53
Forms and User Input
5 questions
Specifying Required Fields
6:52
Required Input
1 question
Setting an Error Message Variable
3:58
Displaying the Error Message
3:56
Error Message Priority
3:59
Error Message Handling
5 questions
Re-Displaying the Submission
6:46
Integrating Validation Errors
5 questions
Escaping Output
5:01
Escaping Output
1 objective
Wrapping It Up
0:45
Extra Credit
Instead of showing only the highest-priority error message, it might be nice to display all the error messages
Make the $error_message variable an array instead of a simple piece of text.
Change the validation so that it runs all the checks, even after it encounters an error.
Change the code that displays the error message to use a foreach loop that goes through all the elements in the error message array and display them.

پیشنهاد فرادرس

لینک های دانلود حجم فایل: 559.0MB TeamTreeHouse Build a Basic PHP Website Course_git.ir.rar