摘要:
摘自 鱼有所思的博客 http://www.phpweblog.net/kiyone/archive/2007/05/17/1206.aspx 用法: test1 test2 在JS中可以使用: test.innerHTML: 也就是从对象的起始位置到终止位置的全部内容,包括Html标签。 上例中的test.innerHTML的值也就是“test1 test2 ”。... 阅读全文
摘要:
创建一个文件上传表单 upload_file.php Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Filename: 标签的 enctype 属性规定了在提交表单时要使用哪种内容类型。在表单需要二进制数据时... 阅读全文
摘要:
fopen() □ 浯法: int fopen(string filename, string mode); □ 说明: 打开文件 fopen()打开模式 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> * 'r' 开文件方式为只读... 阅读全文
摘要:
The require() function is identical to include(), except that it handles errors differently. The include() function generates a warning (but the script will continue execution) while the require() f... 阅读全文
摘要:
Date() □ 浯法: string date(string format, int [timestamp]); [timestamp]为选项参数, //将输出2008.11.10 字符串格式化的选项如下: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighl... 阅读全文
摘要:
我们先建一个名为form_php.html的文件: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Your name: Your age: 然后建一个welcom.php文件: welcom.php Code ... 阅读全文
摘要:
PHP Arrays □ Numeric Arrays 可以用下列两种方法定义: $names=array("Mike","Marry","Tom"); 或: $names[0]="Mike"; $names[1]="Marry"; $names[2]="Tom"; □ Associative Arrays 也有两种方法定义: $ages=array("Mike"=>20,"Marry"=>... 阅读全文
摘要:
PHP If...Else语句 If...Else Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> "; echo "Have a nice weekend!"; echo "See you on Monday!"; }... 阅读全文
摘要:
PHP基本语法 先来看第一个php实例: Hello World.php Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> PHP注释 In php, we use // to make a single_line comme... 阅读全文
摘要:
(内容来源网络,经过重新整理,可任意转摘,但请注明出处:http://www.cnblogs.com/tograce/category/157013.html)在html中使用表单,还记得吧 一简单的表单 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com... 阅读全文