1 / 11
文档名称:

毕业论文外文翻译-PHP基础语言.doc

格式:doc   大小:69KB   页数:11页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

毕业论文外文翻译-PHP基础语言.doc

上传人:酒酿小樱桃 2017/6/3 文件大小:69 KB

下载得到文件列表

毕业论文外文翻译-PHP基础语言.doc

相关文档

文档介绍

文档介绍:附录 A 外文翻译- 原文部分 PHP Language Basics Active Server Pages (PHP) isa proven, well-established technology for building dynamic Web applications, which provides the power and flexibility you need to create anything from a personal, Web based photo gallery plete catalogue and shopping cart system for your next eCommerce project 。 One unique feature of PHP is that it lets you choose your favourite scripting language, be it JavaScript or PHP ; however, PHP isby far the most popular choice. In this article, I'll bring you up to speed on the basic syntax of the PHP language, including variables, operators, and control structures. This article is the second ina series teaching PHP. Specifically, the goal of this series is to teach you all you need toknow to create dynamic Web sites using PHP. This article picks up right where the previous article in the series, Getting Started with PHP, left off. Variables Here is the listing for the first PHP script I helped you create in the previous article: 1 <html> 2 <head> 3 <title> My First PHP Page </title> 4 </head> 5 <body> 6 <?php 7' Write out a simple HTML paragraph 8 Echo "<p>This isa test of PHP.</p>" 9 ?> 10 </body> 11 </html> As I admitted in that article, this isa pretty uninteresting example of an PHP script. When es right down to it, this script doesn't do anything a plain, old HTML page couldn't do. Oh sure, I gave a slightly more interesting example that displayed the current server time, but tobe really useful a script needs to perform some form of calculation, or manipulate dynamic information to present it in some interesting way. The language used for writing most PHP programs, and which I'llbe using throughout this series, is called PHP . Like most programming languages, PHP lets you store data in variables. A variable may be thought of simply asa named location in memory where data may be stored. PHP is what is known asa loosely typed language, which means that a particular variable may store any kind of information,