Please enable JavaScript.
Coggle requires JavaScript to display documents.
SQL programming(cha 10), PHP programming(cha 11), types, 无需事先声明变量类型,…
-
PHP programming(cha 11)
PHP start tag <?php, which indicates to the PHP interpreter
engine that it should process all subsequent text lines until itencounters
the PHP end tag ?>,
-
-
-
-
PHP variable names
-
can include characters, numbers, and the underscore character _
举例
$_SERVER
-
$_SERVER['PHP_SELF'] in the array is the path
name of the PHP file currently being executed on the server
the action attribute of the form tag instructs the PHP interpreter to reprocess the same file, once the form parameters are entered by the user.
-
-
-
Basic Features of PHP
-
-
numeric data types
printf('The cost is $%.2f and the tax is $%.2f', $cost, $tax) ;
-
-
PHP functions
-
-
Global variables outside of the function cannot be used unless they are referred
to using the built-in PHP array $GLOBALS.
-
ariables appearing inside a function are local even if there is a global
variable with the same name.
-
introduction
-
dynamic Web pages.
part of the information is extracted from
databases or other data sources,
various techniques
-
JavaScript, Ruby, Python, and PERL
动态网页是基于静态网页的。php code in html files 决定网页动态功能。php code 的解析由服务端电脑提供(必须通过网络服务器:比如apache 或者让自己的客户端电脑临时充当服务器。。。)。解析之后仍然生成html网页
-
PHP Database Programming
-
access the database using the script language
PHP,
suitable for creating Web interfaces for searching and updating
databases,
-
-
-
-
-
-