首页> 外文期刊>Journal of online mathematics and its applications >Using PHP For Interactive Web Pages - Introduction: What is PHP? | Mathematical Association of America
【24h】

Using PHP For Interactive Web Pages - Introduction: What is PHP? | Mathematical Association of America

机译:对交互式网页使用PHP-简介:什么是PHP? |美国数学协会

获取原文
       

摘要

When I first started writing web pages, I found it frustrating that, while it was easy to create nice looking forms in plain HTML, it was much more difficult to set up my site to actually respond to (or even record) data submitted via a form. Fortunately, as the web has grown, so have the tools available to handle such tasks. Simple processing of form data is now reasonably easy and allows a web site to become much more interactive. In this article, I present an overview of PHP as one of the useful tools for adding interactivity to a web site beyond a set of hyperlinks. The name is one of those cute self-referential acronyms, the PHP Hypertext Preprocessor. While PHP is a full programming language, it is designed to make adding basic interactivity to a web page easier than it would be with Java applets or CGI programs. In particular, PHP makes it very easy to handle data submitted from a standard HTML web form. PHP code is embedded into a standard web page, where it is set off with tags. (Some variations are permitted on the exact syntax of the tags.) When a browser requests a PHP page from the server, the server scans the contents of the page, then runs the code in the tags and replaces the tags and their content with the output of the code before sending the page to the browser. Since the code is embedded directly into the page, PHP is fairly quick to write and easy to maintain. PHP is not the only language to use such a technique -- Microsoft's Active Server Pages and server-side JavaScript both work similarly. PHP is the open-source variation on this common theme.
机译:刚开始编写网页时,我感到很沮丧,尽管以纯HTML格式创建美观的表单很容易,但要设置我的网站以实际响应(甚至记录)通过Web提交的数据要困难得多。形成。幸运的是,随着网络的发展,可用于处理此类任务的工具也越来越多。现在,表单数据的简单处理相当容易,并使网站变得更具交互性。在本文中,我对PHP进行了概述,它是一种有用的工具,可以通过一组超链接向网站添加交互性。该名称是这些可爱的自指缩写词之一,PHP超文本预处理器。尽管PHP是一种完整的编程语言,但它旨在使向Web页面添加基本交互性比使用Java applet或CGI程序更容易。特别是,PHP使处理从标准HTML Web表单提交的数据变得非常容易。 PHP代码被嵌入到标准网页中,在该网页中使用标签进行标记。 (允许在标记的确切语法上做一些变化。)当浏览器从服务器请求一个PHP页面时,服务器将扫描页面的内容,然后运行标记中的代码,并将标记及其内容替换为在将页面发送到浏览器之前输出代码。由于代码直接嵌入到页面中,因此PHP相当容易编写且易于维护。 PHP并不是唯一使用这种技术的语言-Microsoft的Active Server Pages和服务器端JavaScript的工作原理相似。 PHP是此通用主题的开源变体。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号