web 实现清单表_Web开发人员阅读清单:PHP验证,电子邮件和上传

web 实现清单表

One of the reasons behind the continued popularity of is its strong support for handling data of all kinds, including forms, eMails, and file uploads. The belief that & JavaScript have somehow magically replaced any need for server-side technologies in these areas is a common misunderstanding: broadly speaking, JavaScript and HTML5 accessorize and enhance these processes, rather than replacing them.

持续流行的原因之一是它对处理各种数据的强大支持,包括表格,电子邮件和文件上传。 人们普遍认为, JavaScript神奇地替代了这些领域中对服务器端技术的任何需求,这是一个普遍的误解:从广义上讲,JavaScript和HTML5 辅助并增强了这些过程,而不是取代它们。

For example, the HTML5 Constraint Validation API allows for easy display of form errors in the browser, but this can be avoided by the client (or potentially, not supported by the browser at all); neither in most cases does JavaScript handle submitting the information into a database on a server. The two technologies - server and client - often handle the same information, passed back and forth using Ajax or related technologies. In this reading list, I concentrate exclusively on the PHP side of things.

例如, HTML5约束验证API允许在浏览器中轻松显示形式错误,但是客户端可以避免这种情况(或者可能完全不被浏览器支持); 在大多数情况下,JavaScript都不会处理将信息提交到服务器上的数据库中。 服务器和客户端这两种技术通常使用Ajax或相关技术来回传递相同的信息。 在这份阅读清单中,我只专注于PHP方面。

Goals: use basic regular expressions to check form data with PHP; send an eMail message that includes this information; allow the user to upload a file to a server via a simple web form.

目标 :使用基本正则表达式通过PHP检查表单数据; 发送包含此信息的电子邮件; 允许用户通过简单的Web表单将文件上传到服务器。

Required: access to a server with PHP installed. (An active mail server will be required to complete the eMail lessons).

必需 :访问安装了PHP的服务器。 (完成电子邮件课程将需要一个活动的邮件服务器)。

Total time (core material): 8 hours

总时间(核心材料) :8小时

验证和电子邮件 (Validation & eMail)

注意 (Note)

Enabling any kind of data write, upload or validation on a server always comes with security risks. It is important to understand that this material only covers basic introductory concepts; you should deeply investigate security issues, or consult with an expert, before using any of these techniques in production.

在服务器上启用任何类型的数据写入,上传或验证总是会带来安全风险。 重要的是要理解,该材料仅涵盖基本的入门概念; 在生产中使用任何这些技术之前,您应该深入调查安全问题,或咨询专家。

上载档案 (Uploading Files)

当你做完 (When You’re Done)

While not as common as it’s use in handling files, PHP also contributes to web image management, manipulation and display, often in surprising ways. We’ll look at those abilities in the next reading list.

虽然不像处理文件那样普遍,但是PHP常常以令人惊讶的方式为Web图像管理,操纵和显示做出了贡献。 我们将在下一个阅读列表中查看这些功能。

翻译自: https://thenewcode.com/893/Web-Developer-Reading-List-PHP-Validation-eMail-and-Uploads

web 实现清单表

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值