PHP学习小结(一)
PHP学习总结(一)
对最近学习PHP做个简单的总结吧
书籍:《PHP和MySQL Web开发》
环境/工具:wamp/Editplus&Chrome
时间:8月2日-8月7日
内容:
以前把前3章学了,前3章主要是基础语法和逻辑控制语句、文件访问和处理、数组。
第4章 字符串与正则表达式:处理字符的各种函数、正则表达式的基础和应用。
第5章 代码重用与函数编码:require和include函数、PHP的函数结构和使用、递归。
第6章 面向对象的PHP:面向对象的概念和语法、如何用private和public控制访问、如何实现继承。
第7章 错误和异常处理:异常处理的概念和控制结构、Exception类。
这7章是PHP(含面向对象编程语法)的基础,下面接着写。
第8章 设计Web数据库:其实主要是介绍关系型数据库(数据逻辑结构为二维表格)的概念。
第9章 创建Web数据库:其实主要是介绍如何登陆MySQL、如何创建MySQL用户和设置权限、如何创建数据库表和数据类型的设置。
第10章 使用MySQL数据库:inert、select、update、alter table、delete、drop语句的使用(我觉得这是MySQL的重点内容,尤其是select语句,可惜我看得不细)。
第11章 使用PHP从Web访问数据库:如何用PHP建立到MySQL数据库的连接(PHP与数据库交互的接口和方法)。
第12章 MySQL高级管理:简单看了下,主要是讲操作权限和MySQL的安全。(看不太懂。。。)
第13章 MySQL高级编程:存储引擎、事务、外键和存储过程。(也看不太懂。。。)
第14章 运营一个电子商务网站:为什么建网站、网站面临的风险和威胁。(了解一下即可)
第15章 电子商务的安全问题:主要的安全威胁、身份验证原则、加密技术基础、数字证书等。(了解一下即可)
第16章 Web应用的安全(还没看完,不过看到这里,我觉得写的有些啰嗦了。。。)
总结一下:第1~7章是PHP的基础,第8~11章是MySQL和PHP访问数据库的基础,第12、13章MySQL高级管理和编程有些难(个人感觉可以大概看下),第14章~第15章简单看下即可。
因为一直对编程技术很感兴趣,感觉做网站很酷,所以一直在学习。以前自己学过Java和C,Web编程方面也学过一些Servlet和JSP,不过一直是断断续续的学,也没有实战经验。
这本书,我打算把前面18章(前半部分)看完,然后停一下,书的后半部分主要是PHP的高级技术介绍和应用。先把HTML、CSS和javascript学习一下(以前一直没有怎么关注过),然后结合前18章的知识做一个小型的网站练练手,然后再写个总结。
今天,我的网络断了,这是用EditPlus写的,等网络修复了再贴到博客里去吧。
8月2号-8月7号 晚20:28。
-------------------------------------------------------------------------------------这里是分割线-------------------------------------------------------------------------
PS:做到第17章的用.htaccess文件使用基本身份验证时出问题了,百度了下,依然不知道如何下手。
500Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

Data Integration Simplification: AmazonRDSMySQL and Redshift's zero ETL integration Efficient data integration is at the heart of a data-driven organization. Traditional ETL (extract, convert, load) processes are complex and time-consuming, especially when integrating databases (such as AmazonRDSMySQL) with data warehouses (such as Redshift). However, AWS provides zero ETL integration solutions that have completely changed this situation, providing a simplified, near-real-time solution for data migration from RDSMySQL to Redshift. This article will dive into RDSMySQL zero ETL integration with Redshift, explaining how it works and the advantages it brings to data engineers and developers.

To fill in the MySQL username and password: 1. Determine the username and password; 2. Connect to the database; 3. Use the username and password to execute queries and commands.

MySQL database performance optimization guide In resource-intensive applications, MySQL database plays a crucial role and is responsible for managing massive transactions. However, as the scale of application expands, database performance bottlenecks often become a constraint. This article will explore a series of effective MySQL performance optimization strategies to ensure that your application remains efficient and responsive under high loads. We will combine actual cases to explain in-depth key technologies such as indexing, query optimization, database design and caching. 1. Database architecture design and optimized database architecture is the cornerstone of MySQL performance optimization. Here are some core principles: Selecting the right data type and selecting the smallest data type that meets the needs can not only save storage space, but also improve data processing speed.

1. Use the correct index to speed up data retrieval by reducing the amount of data scanned select*frommployeeswherelast_name='smith'; if you look up a column of a table multiple times, create an index for that column. If you or your app needs data from multiple columns according to the criteria, create a composite index 2. Avoid select * only those required columns, if you select all unwanted columns, this will only consume more server memory and cause the server to slow down at high load or frequency times For example, your table contains columns such as created_at and updated_at and timestamps, and then avoid selecting * because they do not require inefficient query se

Copy and paste in MySQL includes the following steps: select the data, copy with Ctrl C (Windows) or Cmd C (Mac); right-click at the target location, select Paste or use Ctrl V (Windows) or Cmd V (Mac); the copied data is inserted into the target location, or replace existing data (depending on whether the data already exists at the target location).

Detailed explanation of database ACID attributes ACID attributes are a set of rules to ensure the reliability and consistency of database transactions. They define how database systems handle transactions, and ensure data integrity and accuracy even in case of system crashes, power interruptions, or multiple users concurrent access. ACID Attribute Overview Atomicity: A transaction is regarded as an indivisible unit. Any part fails, the entire transaction is rolled back, and the database does not retain any changes. For example, if a bank transfer is deducted from one account but not increased to another, the entire operation is revoked. begintransaction; updateaccountssetbalance=balance-100wh

View the MySQL database with the following command: Connect to the server: mysql -u Username -p Password Run SHOW DATABASES; Command to get all existing databases Select database: USE database name; View table: SHOW TABLES; View table structure: DESCRIBE table name; View data: SELECT * FROM table name;
